By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
440,070 Members | 1,237 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 440,070 IT Pros & Developers. It's quick & easy.

Cron for Windows and running PHP script from it ?

P: 296

I want to fire query at a database and then email the result to a user . This I want to do everyday automatically.

I thought to use cron for it. If there is any other better way please tell me ?

If there is no other way then please tell me a cron software for windows and running a php script from it ?
Feb 6 '08 #1
Share this Question
Share on Google+
1 Reply

code green
Expert 100+
P: 1,726
On Windows use a Windows Scheduled Task not cron.
The task needs to run php.exe and your script on the same command line.
Test the command line from a DOS command prompt then insert this into the 'run' bar inside the task scheduler..
So long as you have the neccesary permissions it is quite easy.
Feb 6 '08 #2

Post your reply

Sign in to post your reply or Sign up for a free account.