Page 1 of 1

[SOLVED] Force creating blog cache?

Posted: Tue Oct 19, 2004 4:04 pm
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

Posted: Tue Oct 19, 2004 4:07 pm
by patrikG

Posted: Tue Oct 19, 2004 4:09 pm
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");

Posted: Wed Oct 20, 2004 7:58 pm
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

Posted: Fri Oct 22, 2004 6:30 pm
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