00king00 Posted May 8, 2007 Share Posted May 8, 2007 Hi I lunched a new MMORPG text based game, but the player (turns) not working, the (turns) function in the game should be automatically run after 30 min I tried to search the database bit can't find any information or tips to let the turns works, I setup a cron jobs as per the script information but also the (turns) didn't work :-( I got a hint from a friend that maybe the IP server is involved with the turns, is it true? And how I can let the turn's works? Thanx Quote Link to comment https://forums.phpfreaks.com/topic/50517-help-with-cron-jobs-with-mmorpg-text-based-game/ Share on other sites More sharing options...
00king00 Posted May 8, 2007 Author Share Posted May 8, 2007 A reply from the developer: You need to write a shell command to execute the PHP script that you want. One way to do this is using wget, a command-line HTTP request tool. For instance, Code: wget -qO - http://example.com/script.php will execute script.php, and print the ouput to stdout. If you put this in a cron job, the output will be emailed to you. You can also set up authentication on the script and provide the username and password to wget, which is a good idea to prevent random people from executing that script and advancing the game whenever they want to. Google for the wget documentation for more info. But its didn't work and the turns space still empty!! Quote Link to comment https://forums.phpfreaks.com/topic/50517-help-with-cron-jobs-with-mmorpg-text-based-game/#findComment-248244 Share on other sites More sharing options...
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.