php_self

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tintin
Forum Newbie
Posts: 13
Joined: Fri Dec 13, 2002 7:13 am

php_self

Post 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 ....
hedge
Forum Contributor
Posts: 234
Joined: Fri Aug 30, 2002 10:19 am
Location: Calgary, AB, Canada

Post 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.
tintin
Forum Newbie
Posts: 13
Joined: Fri Dec 13, 2002 7:13 am

Post 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.
Post Reply