562Part IIIAdvanced Features and TechniquesTimeoutThis value sets the (Cheap web hosting)
Tuesday, May 8th, 2007562Part IIIAdvanced Features and TechniquesTimeoutThis value sets the default number of seconds before any HTTP request will time out. If you setPHP s max_execution_timeto longer than this value, PHP will keep grinding away but theuser may see a 404 error. In safe mode, this value will be ignored; you must use the timeoutvalue in php.iniinstead. DocumentRootDocumentRootdesignates the root directory for all HTTP processes on that server. It lookssomething like this on Unix: DocumentRoot /usr/local/apache_1.3.6/htdocs It looks like this on Windows: DocumentRoot C:/Program Files/Apache/htdocs/ The document root can be almost any directory it needn t be in the Apache installation direc- tory.You can specify a subdirectory of this as the PHP document root, using the doc_rootsetting in php.ini. In this case, HTML files would be served out of the Apache document rootand its subdirectories, but PHP would be parsed only in the specified PHP directory and itssubdirectories. AddTypeThe PHP MIME type needs to be set here for PHP files to be parsed. Remember that you can associate any file extension with PHP; many administrators set the.php3and .htmltypes for backward compatibility but if you wanted to, you could havePHP parse files called filename.aspor filename.jsp. You can also add multiple types fordifferent versions of PHP. The following are sample AddTypelines; the first one is the mostcommon for PHP4 and above, but you can add as many of the others as you wish. AddType application/x-httpd-php .php AddType application/x-httpd-phps .phpsAddType application/x-httpd-php3 .php3 .phtmlAddType application/x-httpd-php .htmlYou can also set this on a per-directory basis with .htaccess, simply by adding type lines to.htaccessfiles. PHP files are then parsed only in one directory of your site (for instance, in a forum folder). Alternatively, you can set up a directory with archived versions of files thatmay have old extensions so just in that directory, Apache allow files with the .phtmlexten- sion to be parsed. ActionYou must set this line for the CGI version of PHP with Apache, generally used with Windows. You do notneed to set this line for the module version of PHP. Action application/x-httpd-php4 /php/php.exe LoadModuleYou must uncomment this line for the Windows apxs module version of Apache with sharedobject support: LoadModule php4_module modules/php4apache.dll34
Note: If you are looking for high quality webhost to host and run your jsp application check Vision christian web host services