I want to make a web catching Program that will extract certain data from a specific site and store the info into Mysql database and it must also be triggered by time, for example everyday at 10 am it will go to a specific site and then extract the information that i need... is there a way to do this??? Thanks everyone!!!!
PHP can't do this all by itself. If you're on Linux or another Unix, go find a HOWTO about crontab. With crontab, you can schedule jobs to happen at specific times. In Windows, I assume you'd use task scheduler, but that's not my department.
$data = file("http://www.blah.com"); $query = "INSERT INTO TABLE (DATA) VALUES('$data')"; $result = mysql_query($query);
remember to open the sql db 🙂 oh and use crontab, but then you'll have to use php bash, so it might require a new make.