Login   Register  
PHP Classes
elePHPant
Icontem

File: example.php

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  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: 11 years ago
Size: 302 bytes
 

Contents

Class file image Download
<?

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

?>