L Posted November 14, 2007 Share Posted November 14, 2007 Hi, I need some help. So basically with my bihira account I wanted to run a cron job every minute executing the file all.php. But I made a mistake and made the path wrong. No big deal I thought as I just went back and fixed it to the right path... This is what I entered: * * * * * /home2/iffatb/public_html/iv/includes/all.php But now here is the problem. When I go to my domain it gives me an internal error 500, and I can't see any way to undo the cron job. Please help, I'm hoping this mistake is fixable. Can it be an error in my all.php file? Link to comment https://forums.phpfreaks.com/topic/77258-cron-jobs-and-php-error/ Share on other sites More sharing options...
rajivgonsalves Posted November 14, 2007 Share Posted November 14, 2007 what exactly does your all.php do ? Link to comment https://forums.phpfreaks.com/topic/77258-cron-jobs-and-php-error/#findComment-391220 Share on other sites More sharing options...
btherl Posted November 14, 2007 Share Posted November 14, 2007 Was there anything else you changed around that time that could have caused the ISE (internal server error) ? It's very unlikely that creating a cron job would have that effect. Link to comment https://forums.phpfreaks.com/topic/77258-cron-jobs-and-php-error/#findComment-391226 Share on other sites More sharing options...
aschk Posted November 14, 2007 Share Posted November 14, 2007 Is it me or does that cron job run EVERY minute of EVERY hour of EVERY day of EVERY month... Is that what you intended? Link to comment https://forums.phpfreaks.com/topic/77258-cron-jobs-and-php-error/#findComment-391230 Share on other sites More sharing options...
L Posted November 14, 2007 Author Share Posted November 14, 2007 ^ yah basically... all.php has the if statements for upgrading a member if they reached a certain amount of posts... if $numposts >= 30 && $numposts < 10 something like that but a bunch for all the ranks...I don't want the site to slow for having that in an include all the time so I'd rather cron it Link to comment https://forums.phpfreaks.com/topic/77258-cron-jobs-and-php-error/#findComment-391730 Share on other sites More sharing options...
btherl Posted November 15, 2007 Share Posted November 15, 2007 You could do the check every time someone makes a new post. And the check only needs to be done for one user if you use that approach. Link to comment https://forums.phpfreaks.com/topic/77258-cron-jobs-and-php-error/#findComment-391871 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.