note 52438 rejected from reserved.variables by nlopess

From: Date: Sun, 01 May 2005 14:07:26 +0000
Subject: note 52438 rejected from reserved.variables by nlopess
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-88837@lists.php.net to get a copy of this message
Note Submitter: Stor_m at gmail dot com ---- Hi there people, Is there a way of just getting the full path with the dir name? i have <?php $path = __FILE__; if (substr( $path, -4 ) == '.php') { $path = substr( $path, 0, -8 ); } echo $path; ?> but if the filename is over 4 charachters long, it prints out something like "http://dhost.info/jps/xtr3m3/i" for index.php, please tell me how i can get the dir name

« previous php.notes (#88837) next »