0

Hello,

Currently I have a PHP Script that screen scrapes a website for data, and store it into a MySQL table. I'd like to set this up to run in intervals during the day. Right now, all I do is open the link in my browser and it runs the script. I'd like to automate this process somehow.

I read up, and since I'm using WAMP, apparently I need to use task scheduler. Is there a way around this? Is there a better way to do what I want to be done?

Thanks in advance.

2
Contributors
3
Replies
4
Views
6 Years
Discussion Span
Last Post by pritaeas
0

A scheduled task is exactly what you are looking for. If your application has to be in PHP, then there are no real other options.

0

A scheduled task is exactly what you are looking for. If your application has to be in PHP, then there are no real other options.

Thanks. It doesn't have to be in PHP, it's just how I coded it/most comfortable with. Not sure how to screen scrape any other way.

When doing a scheduled task, I'm assuming the computer would need to be on? And the file would be local, not on a server. Correct?

0

You can run the task on the server, if that's where your PHP file is. And yes, the computer needs to be turned on.

This topic has been dead for over six months. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.