View Full Version : I need help reading php file + writing it as html file

09-06-2009, 08:40 PM

I have this blog hosted on a sub folder like this: www.domain.com/blog/

I'm using wordpress. On my domain index I have a php file thats basicly a html file with a query to my blog database that places blog posts on my index.

Now I want that entire php (with all the other regular html in it) to be run and written as index.html so I can use a cron to let it run every hour or so.

For example like this:

some-run-and-write.php (I let cron run this every hour or so)
overwrite index.html

Is that possible?

09-06-2009, 09:22 PM
So, you basically want a caching system?

09-06-2009, 09:43 PM
So, you basically want a caching system?

Exactly! For my wordpress blog I use a plugin but I need some directions on how to do it outside my blog using php...