I have a webpage which scrapes the data from a page and updates a database. I want it to work automatically (I mean it scrapes data from a page and updates a database) even when my laptop is off and I am not browsing the that page. Rest of the page will pick the data from database from now. Question is how and which function I should write which will run the page let it scrape the data and store it into database. Please help me; it is in php for the website.
Asked
Active
Viewed 99 times
-1
-
2I don't even know how to respond to this. – Ben Fortune Aug 30 '13 at 11:39
-
Maybe you can use cron on the server? – Petr R. Aug 30 '13 at 11:56
2 Answers
0
Host your website so that it is up 24/7 and write timers and event handlers in php Google for them you will find tons of concepts and code

REX
- 13
- 4
-
http://stackoverflow.com/questions/8440834/auto-send-email-based-on-the-time-and-email-address-in-database?answertab=votes#tab-top – Anam Shahzadi Aug 30 '13 at 14:44
-
0
Runwhen or Cronjobs could helo you.
For runwhen checkout the website: http://code.dogmap.org/runwhen/ You create a shell-script (or something else) which is called by runwhen every X minutes. For examples see the website.
Crontabs are supported on every system.
But the question is confusing ...

bastey
- 668
- 2
- 11
- 17
-
you can see at as well http://stackoverflow.com/questions/8440834/auto-send-email-based-on-the-time-and-email-address-in-database?answertab=votes#tab-top – Anam Shahzadi Aug 30 '13 at 14:44