Matt Kendall
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
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER