Welcome to WebmasterWorld Guest from

Forum Moderators: coopster & jatar k

Message Too Old, No Replies

Automatically run PHP files



12:48 pm on Oct 20, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

I have an ISAPI server for PHP installed on a Windows machine. Is there anyway I can schedule PHP files to execute at a certain time. These PHP files don't need to output anything to a web browser or any kind of user end output, just execute the code. Thanks,

Receptional Andy

1:22 pm on Oct 20, 2008 (gmt 0)

If you can run the PHP executable you can setup scheduled tasks within the control panel and specify the file for PHP to open, e.g

C:\PHP\php.exe "C:\scripts\myphp.php" at the command line


1:40 pm on Oct 20, 2008 (gmt 0)

WebmasterWorld Senior Member 5+ Year Member

That was exactly what I needed. Thanks,


5:25 pm on Oct 21, 2008 (gmt 0)

5+ Year Member

For those that might use this article for reference in the future, what you're looking for is called a Cron Job.
You can setup a cron job easily, especially if you are paying for Web Hosting, I'm sure the cPanel of your hosting company has an easy interface to implement a cron job.

As for people who have their own server, google "Cron Job" and the name of your server environment and you should find a sample code pretty easily.


Featured Threads

Hot Threads This Week

Hot Threads This Month