[wp-hackers] PHP as cgi, SCRIPT_NAME errors
ringmaster at midnightcircus.com
Fri May 13 17:12:47 GMT 2005
Carthik Sharma wrote:
> http://wordpress.org/support/topic/33564 is an example of the problem
> produced when php is running as cgi. In this case, it appears that
> $_SERVER['SCRIPT_NAME'] returns the cgi path rather than the required
> What's the best way to solve this, a search lead to beleive that using
> $_SERVER['PHP_SELF'] should fix it, but I cannot begin to work out
> where all this will have to be changed :)
> Could something be done about this in the source, like in
> wp-settings.php or something?
The opposite is often true on IIS. Fixes for this for IIS begin in
wp-settings.php line 6, and it's centralized there by using the
reassigned $_SERVER['REQUEST_URI'] throughout the source.
More information about the wp-hackers