Re: script pathname

From: Date: Mon, 10 Jul 2000 21:59:24 +0000
Subject: Re: script pathname
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-5823@lists.php.net to get a copy of this message
On Mon, Jul 10, 2000 at 11:28:55PM +0200, Jan Horsman wrote: > The predefined varable SCRIPT_FILENAME gives the path and filename > of the script which is executed. I'm looking for a variable or > function wich gives only the path of that filename. Can anyone help > me? basename($SCRIPT_FILENAME) will give you just the filename. dirname($SCRIPT_FILENAME) will give you just the directory. -- Jon Parise (jon@csh.rit.edu) . Rochester Inst. of Technology http://www.csh.rit.edu/~jon/ : Computer Science House Member

« previous php.general (#5823) next »