Jump to content

cache a php page as html


n8w

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

Link to comment
https://forums.phpfreaks.com/topic/21184-cache-a-php-page-as-html/
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.

Archived

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

×
×
  • Create New...

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.