Any suggestions? I don't know if this is a bug or just a misconfiguration.
Expected behaviour:
The $_SERVER variable SCRIPT_NAME should be the name of the running script:
Quote: |
'SCRIPT_NAME'
Contains the current script's path. This is useful for pages which need to point to themselves. The __FILE__ constant contains the full path and filename of the current (i.e. included) file.
|
Actual behaviour:
It works as expected when running under apache, but returns only "/php/php.exe" when running under the built-in SRV Server.
Workaround:
Use $_SERVER['PHP_SELF'] instead.