homepage Welcome to WebmasterWorld Guest from
register, free tools, login, search, pro membership, help, library, announcements, recent posts, open posts,
Become a Pro Member
Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
Forum Library, Charter, Moderators: coopster & jatar k

PHP Server Side Scripting Forum

Automatically run PHP files

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

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)

That was exactly what I needed. Thanks,


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

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.

Global Options:
 top home search open messages active posts  

Home / Forums Index / Code, Content, and Presentation / PHP Server Side Scripting
rss feed

All trademarks and copyrights held by respective owners. Member comments are owned by the poster.
Home ¦ Free Tools ¦ Terms of Service ¦ Privacy Policy ¦ Report Problem ¦ About ¦ Library ¦ Newsletter
WebmasterWorld is a Developer Shed Community owned by Jim Boykin.
© Webmaster World 1996-2014 all rights reserved