faqts : Computers : Programming : Languages : PHP : Not Quite PHP : Apache

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

7 of 11 people (64%) answered Yes
Recently 4 of 7 people (57%) answered Yes


For some reason my php.ini tells me: PHP_SELF /php/php.exe/info.php instead of just info.php. I just switched from IIS so help me stay with Apache!

Nov 4th, 2000 15:09
fernando ruiz, Todor Gaidarov, Narendra Jain, Jan janssen,

PHP_SELF will always give you the entire path from the web / document
root directory for your web server. Probably, your have this code lying 
/usr/local/apache/htdocs/ (if this is the web / document root)
In this case PHP_SELF would be /php/php.exe/info.php.
TG: Use $PATH_INFO instead. :)