[SOLVED] Force creating blog cache?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
tomfra
Forum Contributor
Posts: 126
Joined: Wed Jun 23, 2004 12:56 pm
Location: Prague, Czech Republic

[SOLVED] Force creating blog cache?

Post by tomfra »

Ok, here is my problem...

There are several pages with blog that gets updated every X hours. The RSS parser creates cache file once the blog is displayed for the first time. Nothing special.

Now, is there a way how to force the cache files to be created even if the page has not been accessed yet? I am sure it's possible with PHP - I simply need to 'somehow' replace the end user browser with PHP code.

Any ideas are welcome.

Thanks!

Tomas
Last edited by tomfra on Wed Oct 20, 2004 7:58 pm, edited 1 time in total.
User avatar
patrikG
DevNet Master
Posts: 4235
Joined: Thu Aug 15, 2002 5:53 am
Location: Sussex, UK

Post by patrikG »

User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

...and for user access emulation look into [php_man]curl[/php_man], [php_man]fsockopen[/php_man] or [php_man]fopen[/php_man]("http://your.host/path/script.php");
tomfra
Forum Contributor
Posts: 126
Joined: Wed Jun 23, 2004 12:56 pm
Location: Prague, Czech Republic

Post by tomfra »

Thanks everyone! I am working on a solution and am sure I'll find the right one thanks to the hints from you.

Tomas
tomfra
Forum Contributor
Posts: 126
Joined: Wed Jun 23, 2004 12:56 pm
Location: Prague, Czech Republic

Post by tomfra »

One more question... I've used fsockopen and it works great but is there a way how to detect if the process has finished and then send notification email for example?

Thanks!

Tomas
Post Reply