At 2:22 PM -0500 1/11/01, Ignacio Vazquez-Abrams wrote:
>On Thu, 11 Jan 2001, John Guynn wrote:
>
> > Do I pay a performance penality for calling a file that only contains html
> > code .php or .php3?  In otherwords what is the php parser overhead if there
> > is no php code in the file?
> >
> > John Guynn
> >
> > This email brought to you by RFCs 821 and 1225.
> >
>
>Yes, because that file will be put through the parser regardless of whether or
>not there's any PHP in it.


The extent of this overhead depends on whether you're running PHP as 
a module or as a CGI. With CGI, the overhead is quite large, probably 
too much unless you have a really meaty server or a lightly-hit web 
site. For an Apache module, I recall a test someone ran > 1 year ago 
that resulted in an extra ~4 % load for parsing plain html pages 
through php (as opposed to just statically serving the html pages). 
This person had set his server to php-parse the .html extension.

        - steve


>--
>Ignacio Vazquez-Abrams  <[EMAIL PROTECTED]>
>
 

+--- "They've got a cherry pie there, that'll kill ya" ------------------+
| Steve Edberg                           University of California, Davis |
| [EMAIL PROTECTED]                               Computer Consultant |
| http://aesric.ucdavis.edu/                  http://pgfsun.ucdavis.edu/ |
+-------------------------------------- FBI Special Agent Dale Cooper ---+

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to