batch file to be executed at regular intervals

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sobha
Forum Commoner
Posts: 56
Joined: Wed Jul 15, 2009 9:08 pm

batch file to be executed at regular intervals

Post by sobha »

I wish to execute a mysql querry at regular intervals .....precisely every half an hour....So how should i go about it using php...i want the batch file to be executed at regular intervals....any external process or application that will invoke it?????
Mark Baker
Forum Regular
Posts: 710
Joined: Thu Oct 30, 2008 6:24 pm

Re: batch file to be executed at regular intervals

Post by Mark Baker »

cron on *nix, or admin/scheduled tasks on a windows server
sobha
Forum Commoner
Posts: 56
Joined: Wed Jul 15, 2009 9:08 pm

Re: batch file to be executed at regular intervals

Post by sobha »

Hi

I used echo exec('C:/start.bat'); to execute the batch file.But it is not showing the output.

Please help.

Regards,
Sobha
Post Reply