Server var PHP_SELF repeating itself?
Posted on 2008-10-28
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.