Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

Server var PHP_SELF repeating itself?

Posted on 2008-10-28
2
Medium Priority
?
315 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Password hashing is better than message digests or encryption, and you should be using it instead of message digests or encryption.  Find out why and how in this article, which supplements the original article on PHP Client Registration, Login, Logo…
Many old projects have bad code, but the budget doesn't exist to rewrite the codebase. You can update this code to be safer by introducing contemporary input validation, sanitation, and safer database queries.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
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…

705 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