[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [cobalt-users] Re: php newbie...or something
- Subject: Re: [cobalt-users] Re: php newbie...or something
- From: Kris Dahl <krislists@xxxxxxxxxxxxx>
- Date: Tue Apr 25 11:55:41 2000
on 4/25/00 9:28 AM, Joe Kerns at joe@xxxxxxxxxxxxx wrote:
>>> D> I renamed it as you suggested with the php3 extension and it
>>> D> works. Thought it was supposed to be able to be embedded in a
>>> D> .html page too though. Back to the books for me. :-)
>>>
>>> Yes I can. All you have to do is change your httpd.conf and srm.conf so
>>> that all pages with the extension .html go through php.
>>>
>>
>> Doing this will slow the system down, as all pages need to be parsed.
>
> The difference isn't distinguishable on my system. I have seen no degradation
> of performance.
> I'm not sure if parsed is the correct terminology, if there aren't in PHP tags
> then the file is
> only looked at...semantics, I spose...
It parses every file, meaning PHP has to check and see if there are any tags
that it needs to take care of. Most systems you will not see a much of a
performance hit. But if you are serving some major pages, it will be there.
Static pages are much faster than parsed pages. Just something to consider.
I would suggest, if going this route, do it on a per virtual host basis (ie.
only the virtual hosts that use PHP have the PHP engine parse all their
files). This will eliminate virtually all of the difference (because they
are all PHP files anyway, they would have been parsed just the same).
-k