Thread: Schedule php or web page call

1. Schedule php or web page call

I have a web page with php that calls out, get's some information and write's it to a database. I'd like to call this automatically through a scheduled process every few hours. What's the best way to do this? I'm running Xampp on a windows box if that makes any difference.

2. For windows you will need to look into Scheduled Tasks. Works in the same way as a cronjob for Linux.

3. Originally Posted by spikeZ
For windows you will need to look into Scheduled Tasks. Works in the same way as a cronjob for Linux.
Thanks, but what do I actually call? Windows scheduler doesn't have a mechanism to call a web page.

Is there a way to call a php script from command line?

4. There certainly is:
Code:
c:\php\php.exe c:\path\to\scheduled\script.php
Another tool to consider:
http://cronw.sourceforge.net/

5. I will also recommend cron , please go to you hosting panel and see if CRON is availible ... Itll help u set it up .

6. Ah great, I didn't know you could call php that way. I'll give that a shot. cron is in the panel, so I'll give that a shot.

Thanks guys.

Posting Permissions

• You may not post new threads
• You may not post replies
• You may not post attachments
• You may not edit your posts
•