By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,985 Members | 1,863 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,985 IT Pros & Developers. It's quick & easy.

different PHP_SELF behaviors

P: n/a
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?

Jul 4 '06 #1
Share this Question
Share on Google+
2 Replies


P: n/a
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

Jul 4 '06 #2

P: n/a
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
*****************************
Jul 4 '06 #3

This discussion thread is closed

Replies have been disabled for this discussion.