Link to home
Start Free TrialLog in
Avatar of Matt Kendall
Matt KendallFlag for United States of America

asked on

Server var PHP_SELF repeating itself?

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.
ASKER CERTIFIED SOLUTION
Avatar of Umesh
Umesh
Flag of India image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Matt Kendall

ASKER

That was it.. it was a bug in 5.2.4, thanks!