473,386 Members | 1,804 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

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?

Jul 4 '06 #1
2 1349
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: Ankur Gupta | last post by:
How can I retrieve all the page name with arguments passed to itself? Using Php_Self tag with the following URL: ...
5
by: Maja | last post by:
here's situation: i have installed php 5 and apache 2.0. i can call my page with: localhost\\subdir\page.php inside my page i use links like this:
12
by: Don | last post by:
What's the PHP equivalent for the following? if(window.location == "http:/site.com/page1.html") { } else { }
1
by: Michael Brennan-White | last post by:
If I submit my for using a get action the resulting page loads . If I use a post action I get an error page saying "The page cannot be found". I am calling the originating page!!! This happens...
137
by: Philippe C. Martin | last post by:
I apologize in advance for launching this post but I might get enlightment somehow (PS: I am _very_ agnostic ;-). - 1) I do not consider my intelligence/education above average - 2) I am very...
10
by: Jim Carlock | last post by:
Looking for a way to extract the path from the pfqpn (partially full qualified path name). $sThisServer = $_SERVER; // returns either aquaticcreationsnc.com or www.aquaticcreationsnc.com ...
4
by: Jim Carlock | last post by:
Are the XSS / Cross Site Scripting attacks fixed in Version 4.44? I'm seeing that $_SERVER doesn't return the $_SERVER appended to it. I was just messing with a few things and noticed that...
18
by: zoilus | last post by:
Can not determine how "<?=PHP_SELF?>" is supposed to work. The below is the line of code. <!-- <form name="search" method="post" action="<?=$PHP_SELF?>"--> When the above statement is run the...
7
by: dantebothermy | last post by:
In the data entry area of my access application, I give users an opportunity to undo. The same code gives me three different behaviors. When I first test it, it works fine. But if I edit the...
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.