Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- getting base directory
- Aaron Gray
April 2, 2008, 3:59 pm
rate this thread
So when given the script file '/var/www/test.org/html/test/index.php' from
$_SERVER['SCRIPT_FILENAME'] it returns '/var/www/test.org/html/test/'.
I am wondering the neatest way to do this ?
I cannot find a reverse string search function.
Many thanks in advance,
- » PHP blocks session_start while other PHP instance is running
- — Previous thread in » PHP Scripting Forum