Re: doing a "task", like a program running forever

From: Date: Sat, 28 Jul 2001 18:47:46 +0000
Subject: Re: doing a "task", like a program running forever
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-60072@lists.php.net to get a copy of this message
At 01:31 pm 7/28/01 -0300, Augusto Cesar Castoldi wrote:
I want that each hour my script gets the weather of a site (like yahoo) and write to a txt file.
Hi Augusto. first write the script to accomplish this function. If you're on a Unix type server you can then use the crontab function to have the program run once an hour. You could have the output from that program go to a file. Then for the webpage that serves up that data you can read the contents of the file the hourly program has created. BTW, you should make sure you're doing this in a way that Yahoo (for example) finds acceptable usage, e.g. by contacting them first for permission to post their data to your site. Marty Face 2 Interface Web Solutions Website Creation Made SIMPL(tm) http://face2interface.com/Demo

« previous php.general (#60072) next »