View Single Post
Old 11-14-2004, 01:04 PM  
dcortez
DINO CORTEZ™
 
dcortez's Avatar
 
Industry Role:
Join Date: Jun 2003
Location: Vancouver Island
Posts: 2,145
Quote:
Originally posted by garett
Another thing you can do.. if you want to be as SE-friendly as possible and have the benefit of a compiler cache without actually having to install and configure one is what I do on my TGPs..

I run php on the command line to generate static pages. So for example..

$ php -q main.php > index.html

You can set that up with cron so that it runs once per day, or every 5 minutes or whatever you need to keep your site updating when it's supposed to. With this you have pretty much all the benefits of a compiler cache (the script is compiled more often than it would be with a cache but surfers get a static page which is faster than PHP no matter what - even with a cache) and you illiminate any SE un-friendliness that PHP might introduce.
Great idea!

A true HTML page is the best for SE. Even pages with .html extensions which are dynamically created can send HTTP headers which reveal the page was built on the fly (depending on how the server is configured).

-Dino
dcortez is offline   Share thread on Digg Share thread on Twitter Share thread on Reddit Share thread on Facebook Reply With Quote