[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [cobalt-users] Re: php newbie...or something



> > > 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...
>

Exactly! The file is looked at "parsed" where with straight html the file is not
looked at "semantics".
If you are not getting many hits, then you may not see the difference! But, php
as well as ssi (server side includes) do include some overhead. S use "shtml"
and "php3" when you need to but don't make it global! You may grow up some day
where this will make a diff!