Re: doc_root solution

From: Date: Sun, 17 Sep 2000 13:56:19 +0000
Subject: Re: doc_root solution
References: 1  Groups: php.dev 
Request: Send a blank email to php-dev+get-33365@lists.php.net to get a copy of this message
At 07:44 AM 9/17/00 -0400, rubys@us.ibm.com wrote:
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.
OK great. I just didn't know enough about how the servlet works in order to know if it's more like the Apache module or CGI. In your case it sounds as if the Apache approach is the right one to take. Andi --- Andi Gutmans <andi@zend.com> http://www.zend.com/

« previous php.dev (#33365) next »