PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of Richard Sumilang   crontab   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example of usage
Class: crontab
Schedule cron jobs with ease.
Author: By
Last change:
Date: 20 years ago
Size: 302 bytes
 

Contents

Class file image Download
<?

require_once('crontab.php');
$crontab=new crontab("/www/test/cron/", "filename");
$crontab->setDateParams(5, 10, 5, 5, "*");
$crontab->setCommand("curl http://www.mysite.com/?action=do_me");
$crontab->saveCronFile();
$crontab->addToCrontab();
$crontab->destroyFilePoint(); // OPTIONAL

?>