different PHP_SELF behaviors

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
Say I had the following script:

echo $_SERVER['PHP_SELF'];

Lets call this script test.php.  On some severs, accessing
/test.php/foobar will yield in /test.php/foobar being displayed while
on others, it'll result in /test.php being displayed.  I can't seem to
find anything that all the servers that do display it or all the
servers that don't display it have in common.  Any ideas?  Is it some
PHP directive or some Apache module or something?

Re: different PHP_SELF behaviors

yawnmoth wrote:
Quoted text here. Click to load it

See, especially the Jul 3 post of:

Csaba Gabor from Vienna

Re: different PHP_SELF behaviors

Csaba Gabor wrote:
Quoted text here. Click to load it
[Is this synchronicity?]

I agree. That sure sounds like the difference between the  
cgi.fix_pathinfo settings in php.ini (used when Php runs as a a CGI  
binary). I dredged this up while researching a problem with the contents  
of the path_info server var only yesterday.


 Chuck Anderson • Boulder, CO
 Everyone's journey should be different,
 so that we all are enriched
 in new and endless ways

Site Timeline