Solved

Server var PHP_SELF repeating itself?

Posted on 2008-10-28
2
294 Views
Last Modified: 2013-12-13
Hi, if I create a test.php file in a directory called 'test' and just put <?php echo($_SERVER["PHP_SELF"]);?> in it, I get "/test/test.php/test/test.php" (basically, it's repeating itself).  Changing it to $_SERVER["SCRIPT_NAME"] (or PATH_INFO) works fine and only shows "/test/test.php", but does anyone know where php gets the $_SERVER["PHP_SELF"] variable from, or why it might be doing this?  I'm using PHP v5.2.4 with IIS 6.0 if that helps.
0
Comment
Question by:kendalltech
2 Comments
 
LVL 26

Accepted Solution

by:
ushastry earned 500 total points
ID: 22829301
0
 
LVL 2

Author Comment

by:kendalltech
ID: 22833851
That was it.. it was a bug in 5.2.4, thanks!
0

Featured Post

6 Surprising Benefits of Threat Intelligence

All sorts of threat intelligence is available on the web. Intelligence you can learn from, and use to anticipate and prepare for future attacks.

Join & Write a Comment

Generating table dynamically is the most common issue faced by php developers.... So it seems there is a need of an article that explains the basic concept of generating tables dynamically. It just requires a basic knowledge of html and little maths…
Part of the Global Positioning System A geocode (https://developers.google.com/maps/documentation/geocoding/) is the major subset of a GPS coordinate (http://en.wikipedia.org/wiki/Global_Positioning_System), the other parts being the altitude and t…
Explain concepts important to validation of email addresses with regular expressions. Applies to most languages/tools that uses regular expressions. Consider email address RFCs: Look at HTML5 form input element (with type=email) regex pattern: T…
The viewer will learn how to dynamically set the form action using jQuery.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

22 Experts available now in Live!

Get 1:1 Help Now