PHP Classes

Easy Cron: Schedule site down time period

Recommend this page to a friend!
  Info   View files View files (6)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 1,827 This week: 2All time: 2,154 This week: 94Up
Version License Categories
easycron 1.0GNU General Publi...Time and Date, Systems administration
Description 

Author

This class can be use to schedule site down time period.

It reads from a file a specification that determines the period when the site is open or closed.

The site may close every day or only on specific days at given hours.

The class also provides a Web based user interface to change the site downtime schedule.

Innovation Award
PHP Programming Innovation award nominee
September 2006
Number 3


Prize: One book of choice by O'Reilly
Certain sites need to be closed during specific periods of the day, week, month, etc.. for instance, to perform maintenance tasks.

This class can process scheduled downtime configuration files and stop the access to the regular site pages during such periods.

Manuel Lemos
Picture of NaiFPHP
Name: NaiFPHP <contact>
Classes: 6 packages by
Country: Saudi Arabia Saudi Arabia
Age: 37
All time rank: 5832 in Saudi Arabia Saudi Arabia
Week rank: 109 Up4 in Saudi Arabia Saudi Arabia Down
Innovation award
Innovation award
Nominee: 1x

Details

/************************************************************************ ========================================================= | @ Script Name : EasyCron | @ Version : 1.0 | @ Description : Open and Close your website in fixed times . | @ All rights reserved to : NaiF PHP | @ Created In : 8-9-2006 | @ Support Site : http://www.naifphp.net ========================================================= **************************************************************************/ # ABOUT THIS CLASS : - Use It to manage your open/close status for your website . - You can fix your start time for your website /open . - You can fix your close time for your website /close . - You can adding more hours for your website to open and close. - You can show the time which your website will be avaliable . - it's easy for using . # ABOUT USING : - go to make.php to make new cron - include the EasyCron.php in your website header - May you need to statement this folder 'easycron' (Chmod) the 777 . # Notes : - if you want to use EasyCron in another folder, just use $obj->cron_path = "path/to/EasyCron"; then add : include("path/to/easycron/example.php"); in the included page . for example : easycorn : "path/to/easycron/example.php" add this line in example.php : $obj->cron_path = "path/to/easycron"; you have another folder : "path/to/new_folder/index.php" add this code in index.php for included cron page : include("path/to/easycron/example.php"); thanks for you .

  Files folder image Files  
File Role Description
Accessible without login Plain text file admin.php Aux. for make a new cron
Plain text file easycron.class.php Class file : easy cron class
Accessible without login Plain text file EasyCron.cron Data EasyCron For Example
Accessible without login Plain text file EasyCron.js Data some JavaScript for EasyCron
Accessible without login Plain text file example.php Example Example fo Easy Cron
Accessible without login Plain text file readme.txt Doc. info about Easy Cron

 Version Control Unique User Downloads Download Rankings  
 0%
Total:1,827
This week:2
All time:2,154
This week:94Up