Jump to content

Archived

This topic is now archived and is closed to further replies.

n8w

cache a php page as html

Recommended Posts

I was wondering if there is a good way where I could run a cron-tab every 5 minutes to run a php script to save a php page as static html?

for example .. I would like to run a script that would save http://www.illustrationmundo.com/index.php as http://www.illustrationmundo.com/index.html exactly how the php page is displayed

the reason I want to do this is to reduce connections to mysql

thanks
n8w

Share this post


Link to post
Share on other sites
check out screen scraping. basically, you'd want to run a screen scrape of the page in your cron job and simply update the HTML page you're displaying with each scraping. there are several good, free classes out there to help you with this.

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.