SoulOfDeath Posted June 7, 2007 Posted June 7, 2007 I noticed Kraig needs help and that V1 are bit more harder to do than v2. this is how you do them : i uploaded them to my normal files not in the crons/are/not/4/u folder find it easier like this First i renamed the hospital.php cron hospital1.php (as there are 2 hospital.php) curl http://game-name/fedupdate.php 0 0 * * * curl http://game-name/daysold.php 0 0 * * * curl http://game-name/jobpay.php 1 7 * * * curl http://game-name/orgcrime.php 0 * * * * curl http://game-name/braveupdate.php */5 * * * * curl http://game-name/enerwillupdate.php */5 * * * * curl http://game-name/hospital1.php * * * * * Hope this a help :-) Please Contact me if anything is wrong also remember to upload them like a normal file for these instructions to work :wink: ~SoulOfDeath~ Quote
Will Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) I found that doing it this way means that anyone can run your crons. You can password protect then by putting this code at the top: if ($_GET['pass'] != 'Your_pass') { die("Go away"); } Then in the crons table put ?pass=Your_pass e.g. http://game-name/daysold.php?pass=Your_pass NOTE: Change the "Your_pass" to something else Quote
SoulOfDeath Posted June 7, 2007 Author Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) ok :-) thanks for that will Quote
CraigF Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) curl http://game-name/fedupdate.php 0 0 * * * do we put all that in the command box or just: curl http://game-name/fedupdate.php and make the 0 0 * * * when to do it Quote
SoulOfDeath Posted June 7, 2007 Author Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) yes i have done it in order from left to right what to put in the 5 boxes :-) hope it works for you Kraig :wink: Quote
Will Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Hers an example of what my cron table looks like. NOTE: I have combined my crons into less crons so they are less in the table. Quote
SoulOfDeath Posted June 7, 2007 Author Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) i see your crons are organized different from the original but yes i see what you have done thanks for adding that :-) Quote
Will Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Yeah I combined them Quote
Decepti0n Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Yeesh, am i the only one who uses the beginner cron page? lol Quote
SoulOfDeath Posted June 7, 2007 Author Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) lol no i doubt it hehe :P Quote
Will Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) I don't use the beginner one as I will waste valuable time scrolling down the page. Quote
Decepti0n Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) I usually have like one or two max, so, it doesn't really bother me Quote
Will Posted June 7, 2007 Posted June 7, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Hmm. Good point. Quote
N00b Posted June 10, 2007 Posted June 10, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) dont forget to edit ur mysql.php in cron file lol Quote
Will Posted June 10, 2007 Posted June 10, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Why would you need to change the mysql.phph file? Quote
CraigF Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) mine are working :) Quote
SoulOfDeath Posted June 11, 2007 Author Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Good kraig was this because of what i posted :P Quote
CraigF Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) yeah xD Quote
Will Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Hopefully you have password protected them.... Quote
Matty Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) I found that doing it this way means that anyone can run your crons. You can password protect then by putting this code at the top: Code: if ($_GET['pass'] != 'Your_pass') { die("Go away"); } Then in the crons table put ?pass=Your_pass e.g. http://game-name/daysold.php?pass=Your_pass NOTE: Change the "Your_pass" to something else Another suggestion is moving the crons to a folder OUTSIDE of the public_html folder, this is so they cannot be accessed through a browser at all. Quote
hamster01 Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) I agree, Rather make a folder outside public_html(www on some servers) and run it trough that. I found that doing it this way means that anyone can run your crons. You can password protect then by putting this code at the top: Code: if ($_GET['pass'] != 'Your_pass') { die("Go away"); } Then in the crons table put ?pass=Your_pass e.g. http://game-name/daysold.php?pass=Your_pass NOTE: Change the "Your_pass" to something else Another suggestion is moving the crons to a folder OUTSIDE of the public_html folder, this is so they cannot be accessed through a browser at all. Quote
Will Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Hmm how can you do that if you put http://gamename.com/cron.php That is a in the public_html folder. So what would be any deeper? Quote
Matty Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) The hint is cannot be accessed through browsers. lol /home/cpanel username or whattever/cronjobsfolder/cron.php Quote
Will Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) I wasn't sure you could put folders. An advantage of putting them in the home directory mean that you can run them manually. Quote
Matty Posted June 11, 2007 Posted June 11, 2007 Re: How To Do V1 Crons ( Hope This Will Help ) Of course you can. The scripts are located on the same server, the cron service runs on the same server, well to an extent that you would know. So why not, I put my crons and my mysql details outside my public html folder so that noone can ever get to them unless they have my cpanel/ftp password. :) You can still do what you like with them BUT you cannot access them via a browser, you can however include them in a php file which you save in public html and then view it in a browser include "/home/cpanel username or whattever/cronjobsfolder/cron.php"; like so :) 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.