RE: [PHP] can I rely on $PHP_SELF ???

From: Date: Tue, 16 Oct 2001 07:41:51 +0000
Subject: RE: [PHP] can I rely on $PHP_SELF ???
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-71183@lists.php.net to get a copy of this message
You could create a constant or variable in a prepend file and use this instead of $PHP_SELF that way you only have to define it once for each application. Regards Matt Williams matt@yewlands.com > -----Original Message----- > From: Christian Dechery [mailto:cdechery@easynet.com.br] > Sent: 16 October 2001 03:12 > To: Matt Williams; softm@ipm.lviv.ua > Cc: php-general@lists.php.net > Subject: RE: [PHP] can I rely on $PHP_SELF ??? > > > At 09:44 15/10/01 +0100, Matt Williams wrote: > > > > bad. What about path ? > > > > > > >What about path?? > > > >That wasn't listed as an original requirement. > > ok... so I forgot to mention it... sorry! :) > > > >ok use substr or str_replace to remove the /php/php.exe bit. > > but that varies depending on the instalattion... the "pseudo > cgi-bin" dir > may not be always "/php" and the executable can be renamed to whatever... > > _____________________________ > . Christian Dechery > . . Gaita-L Owner / Web Developer > . . http://www.webstyle.com.br > . . http://www.tanamesa.com.br > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net >

« previous php.general (#71183) next »