different PHP_SELF behaviors

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, ...


Go Back   Usenet Forums > PHP Programming Forums > PHP Language

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-04-2006
yawnmoth
 
Posts: n/a
Default different PHP_SELF behaviors

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?

Reply With Quote
  #2 (permalink)  
Old 07-04-2006
Csaba Gabor
 
Posts: n/a
Default Re: different PHP_SELF behaviors

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

Reply With Quote
  #3 (permalink)  
Old 07-04-2006
Chuck Anderson
 
Posts: n/a
Default Re: different PHP_SELF behaviors

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
*****************************
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 08:59 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0