Re: doc_root solution

From: Date: Sun, 17 Sep 2000 11:44:22 +0000
Subject: Re: doc_root solution
Groups: php.dev 
Request: Send a blank email to php-dev+get-33370@lists.php.net to get a copy of this message
Andi Gutmans wrote: > > PHP's "root directory" on the server. Only used > if non-empty and PHP is in CGI or Java servlet > mode." PHP will open the main script according to > doc_root and PATH_INFO and not PATH_TRANSLATED. > > I'm cc'ing Egon so that he can make the documentation > changes and Sam Ruby to find out why servlets use > php_fopen_primary_script(). Are they like CGI's? Servlets use php_fopen_primary_script() because (a) I'm lazy and "borrowed" the code from cgi, and (b) I had problems when PHP was prone to change my working directory on my. (b) has been solved by the virtual directory support (Thanks Andi!), and taking a quick peek at the sapi_apache, I can certainly use that approach instead. - Sam Ruby

« previous php.dev (#33370) next »