Page 1 of 1

php_self

Posted: Fri Dec 13, 2002 7:13 am
by tintin
Hi,

I noticed and read confirmation in this formum that PHP_SELF returns a different result under LINUX and WINDOWS environment.

it returns "/php4/php.exe/myscript.php" under windows and "/myscript.php" under LINUX which is what I expect.

I use APACHE 1.3.20/WINDOWS to test, and the production site is running a recent APACHE/LINUX (Sorry, I will not move to LINUX for now 8O ).

Is there either a more recent version of APACHE/Windows which fixes this problem, or something to change in the configuration file ?

If not, have anybody an advice to solve this problem in a reliable way, better that removing /php4/php.exe ....

Posted: Fri Dec 13, 2002 8:29 am
by hedge
I've never seen that behaviour and I have been using php since php3 on both linux and windows servers. It always is the relative path to the file.

Posted: Sun Dec 15, 2002 5:04 am
by tintin
:D
For information, since I upgraded to PHP 4.2.3 for windows, without changing anything in the inifile, the difference has disappeared.