Re: Couple of beginner questions

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

 



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.


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux