Programming Forums

Programming Forums (http://www.programmingforums.org/forumindex.php)
-   PHP (http://www.programmingforums.org/forum29.html)
-   -   Automation (http://www.programmingforums.org/showthread.php?t=2093)

Ade Feb 3rd, 2005 12:21 PM

Automation
 
Ok guys, just for a change I'm asking a question that probally wont make sence :S

OK, as part of my college course me and a few guys are making an online football management (soccer management ;) ) game. We're using PHP and MySQL.

It's all fairly simple and we it all figured out, apart from one thing, we need to play the games at certain times through the week.

The scrpit that will 'play' the game is quite easy to make it's just how can we execute the script automatically?

It would be easy to load the php script in a browser but that would mean that someone would have to be around at certain times to load the page which can't be relied on.


Ok, that's enough random babble from me, I hope it's not too confusing?

Pizentios Feb 3rd, 2005 2:24 PM

what about having a shell script or a program ouside the php scripts run the games and insert the data that is needed into the database? Then you could just dump the shell script into a cron job (if your running linux).

big_k105 Feb 3rd, 2005 3:40 PM

i have to agree that you could setup a cron job to do this for you if your on linux and a schedualed task if you on windows. you can even set the cron to run the php script every so often so that the php script will run the other script or what ever you want. it should be pretty easy to setup :)

Ooble Feb 3rd, 2005 4:13 PM

You could always go out and buy Football Manager 2005 :p

Ade Feb 3rd, 2005 4:40 PM

i don't think submiting Football Manager 2005 (or champ manager) would get me a good grade in Computer Science :S

Ooble Feb 4th, 2005 10:19 AM

Heh. Fair enough then. Good luck with your project.


All times are GMT -5. The time now is 9:20 PM.

Powered by vBulletin® Version 3.7.0, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Copyright ©2007 DaniWeb® LLC