[wp-hackers] Re: [wp-svn] [2744] trunk/wp-settings.php: Fixes #1488
Nikolay Bachiyski
nbachiyski at developer.bg
Wed Aug 3 08:18:58 GMT 2005
m at wordpress.org wrote:
> // Fix for IIS, which doesn't set REQUEST_URI
> -if (! isset($_SERVER['REQUEST_URI'])) {
> - $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME'];
> +if ( empty( $_SERVER['REQUEST_URI'] ) ) {
> + $_SERVER['REQUEST_URI'] = $_SERVER['SCRIPT_NAME']; // Does this work under CGI?
It does not (or at least - not always). When php scripts are run in cgi
environment (I have tested on Apache only) the SCRIPT_NAME variable is
set to "/cgi-bin/php4-wrapper" or something equally unusable for our
purposes. However the PHP_SELF variable always gives us the relative
path to the current script.
Nikolay.
More information about the wp-hackers
mailing list