Submit Hint Search The Forums LinksStatsPollsHeadlinesRSS
14,000 hints and counting!


Click here to return to the 'Parsing .html files for php code' hint
The following comments are owned by whoever posted them. This site is not responsible for what they say.
Parsing .html files for php code
Authored by: eo on May 31, '03 10:01:47AM

At the cost of using *slightly* more CPU time, I had PHP parse HTML files, and I turned on output compression with PHP. This had the overall effect of speeding up the site and using less bandwidth. I guess I could have just used mod_gzip to have Apache serve compressed files, but I also needed to add PHP code to thousands of HTML files without renaming them.



[ Reply to This | # ]