CartMetrix - Do you know yours?

« BBEdit Documents Drawer Disappears | Home | ZenCart Expected / Upcoming Products Page »

5/10/2006

PHP Cron Script To Run Automated Jobs

I use this PHP script to automate running multiple jobs hourly, daily, weekly and monthly. Sure you can create simple scripts for each job and run them all separately via a Unix crontab, but this self-contained script allows running unlimited jobs all from one file. Plus, it provides a framework for building jobs and storing configurations after each run. It creates a cache file .crontab.php in the same directory, to store runtime and configuration data.

This version has been customized to run under ZenCart. Place in the ZenCart admin directory and make the modification to admin/includes/application_top.php as directed. To run automatically add to your system’s local crontab.

I am currently using to run order shipped updates and custom inventory re-order warnings on ZenCart sites. If you are interested in these specific jobs contact me for details.

Download crontab.php

Popularity: 20%

Trackback:

Related Posts

One Response to “PHP Cron Script To Run Automated Jobs”

  1. Johnnie Rose, Jr. said:

    To run a single PHP script or series of scripts when a web page is accessed, check into Jerrata Backbone. This software supports per-page and per-directory scheduling as well as tiered scheduling: scripts tied to a directory execute before scripts tied to a page within that directory.

Post your opinion

Verification Image

Please type the letters you see in the picture.

Subscribe without commenting


damonparker.org is proudly powered by WordPress
Entries (RSS) and Comments (RSS).

copyright © 2002-2009 damonparker.org. all rights reserved.

Close
E-mail It