...

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



dizkobalz
09-06-2009, 07:40 PM
Hi,

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:

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


Is that possible?

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

dizkobalz
09-06-2009, 08: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...



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum