View Full Version : Cron Job Hosting PLEASE!
Chirantha
October 7th, 2005, 23:32
Hi
Please Please!! I need a host that supports Cron Jobs. I don't wan't www.400megs.com and 90megs.com. I need CRON JOB supported host. Space and Bandwidth does not matter. Some host say that they have but the Cron Jobs don't work on them. I need to run a simple script every 1 min.
Thank you,
Chirantha
EZHost Solutions
October 8th, 2005, 00:08
Your scripts don't work.
R4g1ng
October 8th, 2005, 05:53
What? They didn't post a script...unless I missed something.
Cron jobs could probably work with any host that has cPanel. I don't know much about it.
Chirantha
October 8th, 2005, 06:42
Your scripts don't work.
Oh! Realy? Can some one tell me whats wrong with this script. HAHAHA.....
<?php
$fi=fopen("http://www.csoft.x10hosting.com/index.htm","r");
$fp = fopen ( "totle.co" , "r" );
$totcount = fread ( $fp , filesize("totle.co"));
fclose ( $fp );
$totcount ++;
$fp = fopen ( "totle.co" , "w" );
fwrite ( $fp , $totcount );
fclose ( $fp );
if ($fi)
{
$fp = fopen ( "good.co" , "r" );
$gocount = fread ( $fp , filesize("good.co"));
fclose ( $fp );
$gocount ++;
$fp = fopen ( "good.co" , "w" );
fwrite ( $fp , $gocount );
fclose ( $fp );
}
else
{
$fp = fopen ( "fail.co" , "r" );
$facount = fread ( $fp , filesize("fail.co"));
fclose ( $fp );
$facount ++;
$fp = fopen ( "fail.co" , "w" );
fwrite ( $fp , $facount );
fclose ( $fp );
}
fclose($fi);
$fp = fopen ( "totle.co" , "r" );
$totcount = fread ( $fp , filesize("totle.co"));
fclose ( $fp );
$fp = fopen ( "good.co" , "r" );
$gocount = fread ( $fp , filesize("good.co"));
fclose ( $fp );
$fp = fopen ( "fail.co" , "r" );
$facount = fread ( $fp , filesize("fail.co"));
fclose ( $fp );
$pers = $facount*100/$totcount;
$pers = floor($pers);
?>
Its works fine when I call it manualy. So its your Cron :tongue2:
bariteau
October 8th, 2005, 10:36
what your script is doing, just want to know before proposing you something
Chirantha
October 8th, 2005, 22:53
Its my personal site monitor script. As you know the fopen returns true if the file opened (If the site was up) and returns -1 if the site is down (Failed to open the file). Its nothing like a virus because its just updating the files.
EZHost Solutions
October 9th, 2005, 13:49
We have a security program running on Roxr, you wanted us to disable it so you could view our server status through your script. That would open us up to hackers.
Powered by vBulletin® Version 4.1.7 Copyright © 2012 vBulletin Solutions, Inc. All rights reserved.