Hi all
I have a question about installing PHP. If I want to run PHP on IIS (windows), and run it as CGI binary, do I have to set DOCUMENT_ROOT manually? Because I have seen web servers which run PHP as CGI binary, doesn't set the $SERVER["DOCUMENT_ROOT"] themselves (take a look at this: http://www.darvazeh.com/test.php). But when I run PHP with the ISAPI module, I can see $SERVER["DOCUMENT_ROOT"] set by the server.
Bacause I am using $_SERVER["DOCUMENT_ROOT"] in my codes widely, I can't use it when PHP runs as CGI binary. So I think I must do sth to set it manually. But how can I do it? I can't access to host configuration...
Thanks