Enuf Posted February 10, 2010 Posted February 10, 2010 Hey, so i just put my MCCodes up on my host (free one for now, just as i practise) Will upload it all to a paid host onces it's complete. But my energy will not re gen once it's been used.. any help? Quote
Tyr Posted February 10, 2010 Posted February 10, 2010 If you are on a Free Host you need to check and make sure they allow cron Jobs. If they do not, all things that involve count jail count, hospital count, stat bars, etc Will not budge ^_^ Quote
Enuf Posted February 10, 2010 Author Posted February 10, 2010 I have put cron jobs in, i think i did it right, lol. Not 100% sure xD They look like the guide said.. :P Quote
Enuf Posted February 10, 2010 Author Posted February 10, 2010 free1gig.net It = impossible to find a decent free host which allows crons :P This is the only free host i can find which allows crons, and a decent amount of space.. Quote
Tyr Posted February 10, 2010 Posted February 10, 2010 But what crons do they allow? ^_- 1 minute, 5 minute etc. Basically setting up your cron you need the code it gave you on install and you need to use that cron code on your cron jobs. It's easier to use the advanced cron options Quote
Tyr Posted February 10, 2010 Posted February 10, 2010 Yep 2 questions now are your crons in the public_html root directory And where it says ?code= did you put the code it gave you ? Quote
Enuf Posted February 10, 2010 Author Posted February 10, 2010 I haven't done the second bit, lol. Is that the 'code' in config.php? Or the 'code' in each of the cron .php files? Quote
Djkanna Posted February 10, 2010 Posted February 10, 2010 I'm pretty sure it's the code in the config.php file, add it too the end ?code=codehere :) Quote
corruptcity || skalman Posted February 10, 2010 Posted February 10, 2010 yeah it is but im pretty sure that you could put where ever you wanted to in the config and aslong as its the same code for the cron it will work Quote
Enuf Posted February 10, 2010 Author Posted February 10, 2010 It's still not working, lol. <?php $_CONFIG = array( 'hostname' => 'localhost', 'username' => '*************', 'password' => '*************', 'database' => '*************', 'persistent' => 0, 'driver' => 'mysql', 'code' => 'a76980f6a5008353c3de36f9c4a7394c' ); ?> That's my config file.. Quote
Djkanna Posted February 10, 2010 Posted February 10, 2010 a76980f6a5008353c3de36f9c4a7394c Use that code but now change it as people could now run your crons without you knowing :) cron_day.php?code=a76980f6a5008353c3de36f9c4a7394c ;) Quote
Enuf Posted February 10, 2010 Author Posted February 10, 2010 Im 90% sure i've done what you've said, but still nothing. Quote
Djkanna Posted February 10, 2010 Posted February 10, 2010 It takes it's time see if anything happens within five minutes :) Quote
Djkanna Posted February 10, 2010 Posted February 10, 2010 In the CronTab add the curl infront of the http:// :) curl http://www.domain.tld/cron_day.php?code=codehere Quote
wolfe Posted February 10, 2010 Posted February 10, 2010 lol @ 90% sure. Sorry that made me chuckle pretty good. Quote
Danny696 Posted February 10, 2010 Posted February 10, 2010 Lol wolfe, make sure it has curl in the front of the http:// Quote
Enuf Posted February 10, 2010 Author Posted February 10, 2010 lol @ 90% sure. Sorry that made me chuckle pretty good. Well, i wasn't going to lie, lool. I wasn't 100% sure, and not even 99%.. so i just put 90% lol. And i've added the curl, thing.. still nothing.. -__-; Quote
wrx Posted February 10, 2010 Posted February 10, 2010 run the file manually from your web browser to verify its location. then add it in cron tab ( thats all cron is doing so if you cant run it then it wont be able to either) curl http://free.host.com/mycronfile.php >/dev/null 2>&1 Quote
Zero-Affect Posted February 11, 2010 Posted February 11, 2010 This may have cropped up already but did you add a email? They normally don't run unless a email is added, use one from your domain and empty it regularly. Quote
wrx Posted February 11, 2010 Posted February 11, 2010 This may have cropped up already but did you add a email? They normally don't run unless a email is added, use one from your domain and empty it regularly. good point.. this is normally the case as to why i suggested adding >/dev/null 2>&1 at the end of the command this will disable any notification attempt for the specified cron. Keep it on for daily crons if you want for a verify but no need to have it send a notify on 1m or 5m crons .. Quote
Enuf Posted February 11, 2010 Author Posted February 11, 2010 WRX I FRCKEN LOVE YOU!!!! I ran them, and did that code, and it works.. you my friend are a genius :P And thanks to all the others who tried to help! :D Energy: 16%, it wont go any higher, lol.. Every time i open a certain cron (in the links) it gives me more energy.. Quote
wrx Posted February 11, 2010 Posted February 11, 2010 Every time i open a certain cron (in the links) it gives me more energy.. If by that statement you mean you can manually run the http://yourdomain.com/cron_day.php?code=codehere from your web browser and it works but if you run "curl http://yourdomain.com/cron_day.php?code=codehere" via the cron tab and it dosent work, then verify that "curl" is an available wrapper to be called. your host should be able to verify this for you. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.