[wp-hackers] PHP as cgi, SCRIPT_NAME errors

Carthik Sharma carthik at gmail.com
Fri May 13 16:51:07 GMT 2005


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?

When nothing is done, nothing is left undone -- 老子 Lǎozi

University of Central Florida
Homepage: http://carthik.net

More information about the wp-hackers mailing list