Re: [PHP] Getting the first part out of a string

2001-05-04 Thread Hrishi
Richard Kurth wrote: > I know how to get last part of a string out of a string > But how do I get the first part before the needle On the example > below I just what domain > > $hostdomain= domain.com > > $host = substr (strrchr ($hostdomain, "."), 1); strrchr (two r) finds the first occur

Re: [PHP] HI

2001-05-04 Thread Hrishi
in php.ini and also in the directives of > Apache are you browsing the filesystem ("file://C|/..") or through apache ("http://localhost/";) ? remember that you can add hosts/aliases using the file c:\windows\hosts cheers, Hrishi -- PHP General Mailing List (http:/

Re: [PHP] OT-Please bare with me :)

2001-05-03 Thread Hrishi
Brandon Orther wrote: > menu on the new Cobalt XTR server admin section. If anyone has a > JavaScript or a tutorial how to make a drop down menu please send me a > link. try http://www.webreference.com/dhtml/ cheers, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsub

Re: [PHP] BET News

2001-05-03 Thread Hrishi
MTV Jams wrote: > http://www.mp3.com/mcpedro from [EMAIL PROTECTED] > > The question is this, If you placed a Jamaican born MC on a Hip > Hop/Trance/Techno track and told him to flow without losing his yard > essence (Jamaican Vibes), what would you get? Most likely confusion of > course,

Re: [PHP] [Fwd: Problem in renaming file]

2001-03-02 Thread Hrishi
Hrishi wrote: > Sebastian Bergmann wrote: > >> Carrie KL Tam wrote: >>> Hi Sebastian, >>> >>> Don't understand why the following code keep telling me the error >>> "Rename failed (Invalid argument)": >>> >> $forig =

Re: [PHP] [Fwd: Problem in renaming file]

2001-03-02 Thread Hrishi
, ? and * (among others) are special chars in wind0ze cheers, hrishi >> $fcopy = 'd:/pict/copy/test1'; >> if (rename($sourcepath,$ftppath)) >> { >> echo "pass 1\n"; >> } >> ?> >> >> Pls advise >> >> Cheers, >

Re: [PHP] Double Click

2001-03-01 Thread Hrishi
On Thursday 01 March 2001 21:41, Brinkman, Theodore wrote: > A tactic I've been planning to use, but don't know if it actually works or > not, is to disable the button first thing in its onClick so the second > click occurs on a disabled button. Does anybody know if this actually > works or not

Re: [PHP] Export Linux Users and Password's to MYSQL database

2001-03-01 Thread Hrishi
On Thursday 01 March 2001 17:37, Joe Njeru wrote: > Hi All, > > Is there a way I can export the users in my Linux machine to a mysql > database. Together with their passwords without manually entering all of > them. the passwords are usually encrypted and stored in /etc/passwd or /etc/shadow

Re: [PHP] Terrible Hosting Experience

2001-02-21 Thread Hrishi
most complete control of the > > server (even on virtual hosts). > > they have the best support i have seen till date, and some of the best > > connections i've seen in the industry. > > > > cheers, > > Hrishi -- PHP General Mailing List (http://www.php

Re: [PHP] Print in html

2001-02-21 Thread Hrishi
valuate the contents of the string constant cheers, hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Terrible Hosting Experience

2001-02-21 Thread Hrishi
tions i've seen in the industry. cheers, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] Urgent! Make data input a html file.

2001-02-21 Thread Hrishi
're using mysql, use the TEXT type for the column, for which the default limit is 64k bytes. cheers, hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] CGI BIN PHP

2001-02-21 Thread Hrishi
gi-bin/php4.cgi" AddHandler application/x-php4-script php i hope you can use this. if you have any other problems, reply to the list because i'm sure more people can use this 'technique'. its still under testing, (i made it 2 days ago) so if there are any cha

Re: [PHP] HTTP Content-length...

2001-02-20 Thread Hrishi
tring, not the original; which in PHP will look like : other methods may or may not work if they're not HTTP compliant. cheers, hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contac

Re: [PHP] ASP / PHP / embedded scripting (possibly OT)

2001-02-19 Thread Hrishi
than the above, a preliminary search of M$DN online for the keyword 'python' yields : http://msdn.microsoft.com/library/psdk/cdo/_olemsg_about_active_server_pages.htm i think you can find your way from here, cheers, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscri

Re: [PHP] something wrong at my mail set up in php.ini

2001-02-19 Thread Hrishi
ee any warnings despite the above line, you can be sure its a configuration problem. cheers, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact the list administrators, e-mail: [EMAIL PROTECTED]

Re: [PHP] PHP as CGI

2001-02-19 Thread Hrishi
requested URL /usr/bin/php4/test.php was not found on this server. Apache/1.3.3 Server at www.website.com Port 80 --- the installed CGI is php 4.0.3pl1, it runs fine from the command line. any ideas? thanks, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail:

Re: [PHP] MySQL: Add Autoincrement Field?

2001-02-18 Thread Hrishi
k='book'" to delete only one record, assuming that song names are unique per book. however, with scalability and performance taken into consideration, an index with a unique id makes a lot of sense. note that you can have only one autoindex field per table as of mysql 3.22.* cheers

Re: [PHP] checking image extensions

2001-02-18 Thread Hrishi
> > if ((substr($imgName, -4) != ".jpg") || (substr($imgName, -4) != ".gif")) this case, in plain english is : if ext is not jpg, OR if ext is not gif, error the ext will never be both jpg and gif at the same time, so you're looking for the condition: if ((substr($imgName, -4) != ".jpg") && (

Re: [PHP]Spider script in PHP.

2001-02-10 Thread Hrishi
On Friday 09 February 2001 21:28, Angerer, Chad wrote: maybe late and all, this pieca code was lying around somewhere in my socks ;) see if ya can use it, hrishi begin code snippet handle; $currpath=$fromdir_class->path; chdir($currpath); $dirs=ar

Re: [PHP] DefaultType, FreeBSD, Mod_Rewrite, trailing slash

2001-02-10 Thread Hrishi
> > RewriteCond %{SCRIPT_FILENAME} -d i aint no guru but try puttin %{REQUEST_URI} up there in place of SCRIPT_.. hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] To contact th

[PHP] *Animated* images. (repost)

2001-02-05 Thread Hrishi
Hello, I'm sorry for the repost, but the last one was misunderstood (i think). i'm looking for ways to generate *animated* images using PHP. thanks, Hrishi

[PHP] Animated / Streaming GIF

2001-02-03 Thread Hrishi
hello, is there any way to create an animated GIF [or PNG] image using the php image functions ? thanks, Hrishi

Re: [PHP] multiple function returns

2001-01-25 Thread Hrishi
echo "language pref: ".$prefs["language"]; echo "currency pref: ".$prefs["currency"]; hope this helps. Hrishi

Re: [PHP] Search for the documentation

2001-01-24 Thread Hrishi
why dont you download the BIG one-file manual compilation from http://www.php.net and use the find t0ol in your web browser ? just my $0.02 --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have an

[PHP] how to escape

2001-01-22 Thread Hrishi
Hello all, I'm working on a script that processes and returns a php script. i need to know how to escape the in the string constants that make up the script. thanks, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional comman

[PHP] PHP 4 cgi upgrade problem

2001-01-19 Thread Hrishi
4.0.1pl2 executable (the libraries for 4.0.1 & 4.0.3 are in seperate directories, and both are configured separately). everything works as before with the older version. i'm stumped. can anyone help? TIA, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mai

[PHP] general CGI question

2001-01-18 Thread Hrishi
Hello, I need to know how to get apache to parse CGI output with the SSI parser (the [php] script will have includes, which need to go through mod_include). changing the mime-type to x-server-parsed or anything hooked by mod_include doesnt help. thanks, Hrishi -- PHP General Mailing List

Re: [PHP] I love/hate FrontPage - need another HTML editor.

2001-01-17 Thread Hrishi
If you're still interested, try cooledit for linux/unix http://cooledit.sourceforge.net/ --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. -- PHP General Mailing List (http://www.php.net/

Re: [PHP] xmltree() function - what PHP version?

2001-01-16 Thread Hrishi
> Fatal error: Call to undefined function: xmltree() in > /usr/local/apache/htdocs/megsoc2/test/xml_parse/test1.php on line 5 you prob. need to compile php again with '--with-xml' see 'configure --help' for more info. Hrishi -- PHP General Mailing Lis

[PHP] Template parser

2001-01-16 Thread Hrishi
Hello, Is it possible using apache .htaccess to have every file served from a particular domain/directory pass through a custom script? or is it necessary to make changes at the root level? Thanks, Hrishi -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL

[PHP] Re: Is there an error??

2001-01-14 Thread Hrishi
$odate_sql is not initialized. --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message - From: "Dhaval Desai" <[EMAIL PROTECTED]> To: "H

Re: [PHP] Send Authorization: base64 Header

2001-01-13 Thread Hrishi
i'dve waited for your reply but i'm going home now so check the RFC : http://www.freesoft.org/CIE/RFC/index.htm look for Hypertext transfer protocol, v 1.0 in that look for a chapter called client authentication or somehting like that. that should do it. Hrishi -- PHP General Ma

Re: [PHP] Months...Problem..

2001-01-12 Thread Hrishi
ok, here DATE_ADD(date,INTERVAL expr type) and here http://www.mysql.com/doc/D/a/Date_and_time_functions.html --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message

Re: [PHP] Months...Problem..

2001-01-12 Thread Hrishi
try using the date_* functions in mysql its somewhere in the manual reference section, date and time functions. --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any. - Original Message -

Re: [PHP] mixing HTML and PHP code

2001-01-12 Thread Hrishi
i used to think Name : ","$name","");?> Title : ","$title","");?> or more like : Name : Title : --- Yeah, there are mor

RE: [PHP] Dynamic 'left menu's' on site: Like a windows explorer system???

2001-01-11 Thread Hrishi
take a look at phpmyadmin. they have something similar. i cant remember the URL (and i'm too lazy) but u can find it from http://freshmeat.net/projects/phpmyadmin -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EM

Re: [PHP] Browser cache and form with $PHP_SELF

2001-01-09 Thread Hrishi
y proxies/ISP caches will also not store the page. if you'd like read more on this topic: rfc #2068, chapter 13 Hrishi --- Yeah, there are more important things in life than money, but they won't go out with you if you don't have any.