Forum Moderators: coopster

Message Too Old, No Replies

Scheduling calls to php scripts

schedule calls to php script

         

Tourex

10:25 am on Jul 31, 2006 (gmt 0)

10+ Year Member



Hi There

This may seem a strange one, but bear with me.

I need to schedule calls to PHP scripts on our remote Linux server from my Windows machine. The scripts initiate various database reports and stuff on the server. I know I can use cron on the server, but there are times, particularly during testing, where I would like to be able to initiate them from my local Windows machine.

I've tried using Windows Scheduler, but it doesn't seem to like commands like "http://....".

Any help would be much appreciated.

omoutop

12:45 pm on Jul 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member Top Contributors Of The Month



you must use Crons. Check your control panel if you have access to crontab jobs.

Crons aer simple commands that execut a job on specific date/time. You may use them to schedule your pgp scripts

mcavic

2:25 pm on Jul 31, 2006 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



For testing, you can run them from your local Web browser. Keep in mind that you won't see any error messages, unless your php.ini is custom-configured.

You can also run them from the Windows Scheduler using a command-line browser. I've used Lynx under Windows in the past to download files in the background. Cron would be much easier and more reliable, but the advantage of running from Windows would be that you could have the script output appear automatically on your local machine.