Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

Server var PHP_SELF repeating itself?

Posted on 2008-10-28
2
Medium Priority
?
318 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:Matt Kendall
2 Comments
 
LVL 26

Accepted Solution

by:
Umesh earned 2000 total points
ID: 22829301
0
 
LVL 2

Author Comment

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

Featured Post

Hire Technology Freelancers with Gigs

Work with freelancers specializing in everything from database administration to programming, who have proven themselves as experts in their field. Hire the best, collaborate easily, pay securely, and get projects done right.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

There are times when I have encountered the need to decompress a response from a PHP request. This is how it's done, but you must have control of the request and you can set the Accept-Encoding header.
It’s a season to be thankful, and we’re thankful for users like you who engage on site, solve technology problems, and network with others in the industry. What tech are we most thankful for? Keep reading.
The viewer will learn how to count occurrences of each item in an array.
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…
Suggested Courses

971 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