Location: PHPKode > scripts > Easy Cron > easy-cron/example.php
<?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;


?>
Return current item: Easy Cron