![]() |
|
![]() |
|
|
Thread Tools | Display Modes |
|
|
#1 |
|
Hobbyist Programmer
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0
![]() |
Automation
Ok guys, just for a change I'm asking a question that probally wont make sence
![]() 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?
__________________
Don't wound what you can't kill |
|
|
|
|
|
#2 |
|
Programming Guru
![]() ![]() |
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).
__________________
Profanity is the one language that all programmers understand. Check out my Blog <---updated Nov 30 2007! |
|
|
|
|
|
#3 |
|
PFO Founder
![]() ![]() |
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
![]()
__________________
BIG K aka Kyle Programming Forums Kyle K Online Please do not PM or email me programming questions. Post them in the forums instead. |
|
|
|
|
|
#4 |
|
I eat cake for breakfast.
![]() ![]() ![]() ![]() Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 8
![]() |
You could always go out and buy Football Manager 2005 :p
|
|
|
|
|
|
#5 |
|
Hobbyist Programmer
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0
![]() |
i don't think submiting Football Manager 2005 (or champ manager) would get me a good grade in Computer Science
![]()
__________________
Don't wound what you can't kill |
|
|
|
![]() |
| Bookmarks |
| Currently Active Users Viewing This Thread: 1 (0 members and 1 guests) | |
| Thread Tools | |
| Display Modes | |
|
|