Re: Couple of beginner questions
| From: | ceo at l-i-e dot com | Date: | Fri, 09 Jan 2009 20:22:11 +0000 |
| Subject: | Re: Couple of beginner questions | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-285899@lists.php.net to get a copy of this message | ||
The slowdown of just running raw HTML through PHP was once benchmarked as about 5 to 10 %.
You could, in theory, use .htaccess and <Files> to ForceType specific .html files as PHP,
while leaving the rest of your .html files as static.
I am not recommending this, just being pedantic. :-)
Definitely better to either do them all and take performance hit, which is probably irrelevant to a
beginner, or plan better now and strip .xyz from the URLs.
ymmv.
Personally, I've been quite happy for over a decade running all .html through PHP, on 99% of
the sites I work on.
If it's big enough to *need* static content, they usually have already gone the route of CDN
and have static HTML off on those nodes anyway, in my limited experience.