PHP Classes

File: example.php

Recommend this page to a friend!
  Classes of NaiFPHP   Easy Cron   example.php   Download  
File: example.php
Role: Example script
Content type: text/plain
Description: Example fo Easy Cron
Class: Easy Cron
Schedule site down time period
Author: By
Last change: update
Date: 17 years ago
Size: 1,277 bytes
 

Contents

Class file image Download
<?php

/****************************************************************************************
=========================================================================================
| @ 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
| @ file created in : 8-9-2006 4:44 AM
=========================================================================================
*****************************************************************************************/

/*
# Description This Example
Checks if return true => status = 'closed'
Else
return => 'value'
*/

include "easycron.class.php";

$EC = new MyEasyCron;

// you have to spicfy the EasyCron path
//$EC->cron_path = "c:/appserv/www/easycron";


$EC->ReadCron();

// if this easy corn didn't return true ,you will see this message

$Value = "<html>\n <head> <title> EasyCron Version 1.0 </title>\n\n </head>\n <body>";
$Value .= " <center> <h1> Example For Easy Cron Version 1.0 </h1> </center> ";
$Value . "</body>\n</html>";

echo
$Value;


?>