This is a discussion on different PHP_SELF behaviors within the PHP Language forums, part of the PHP Programming Forums category; Say I had the following script: <? echo $_SERVER['PHP_SELF']; ?> Lets call this script test.php. On some severs, ...
|
|||||||
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
|
|||
|
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? |
|
|||
|
yawnmoth wrote:
> 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? PATH_INFO See, especially the Jul 3 post of: http://groups.google.com/group/comp....df8b9b8b5d81a/ Csaba Gabor from Vienna |
|
|||
|
Csaba Gabor wrote:
> yawnmoth wrote: > >> 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? >> > > PATH_INFO > See, especially the Jul 3 post of: > http://groups.google.com/group/comp....df8b9b8b5d81a/ > > Csaba Gabor from Vienna > > [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. http://bugs.php.net/bug.php?id=31843 -- ***************************** Chuck Anderson • Boulder, CO http://www.CycleTourist.com Everyone's journey should be different, so that we all are enriched in new and endless ways ***************************** |