Programming Forums
User Name Password Register
 

RSS Feed
FORUM INDEX | TODAY'S POSTS | UNANSWERED THREADS | ADVANCED SEARCH

Reply
 
Thread Tools Display Modes
Old Feb 3rd, 2005, 1:21 PM   #1
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
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
Ade is offline   Reply With Quote
Old Feb 3rd, 2005, 3:24 PM   #2
Pizentios
Programming Guru
 
Pizentios's Avatar
 
Join Date: May 2004
Location: Brandon, Manitoba, Canada
Posts: 2,023
Rep Power: 7 Pizentios is on a distinguished road
Send a message via ICQ to Pizentios Send a message via MSN to Pizentios
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!
Pizentios is offline   Reply With Quote
Old Feb 3rd, 2005, 4:40 PM   #3
big_k105
PFO Founder

 
big_k105's Avatar
 
Join Date: Mar 2004
Location: Fargo, ND
Posts: 1,667
Rep Power: 10 big_k105 is on a distinguished road
Send a message via AIM to big_k105 Send a message via MSN to big_k105 Send a message via Yahoo to big_k105
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.
big_k105 is offline   Reply With Quote
Old Feb 3rd, 2005, 5:13 PM   #4
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
You could always go out and buy Football Manager 2005 :p
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Old Feb 3rd, 2005, 5:40 PM   #5
Ade
Hobbyist Programmer
 
Ade's Avatar
 
Join Date: Oct 2004
Location: England, UK
Posts: 139
Rep Power: 0 Ade is an unknown quantity at this point
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
Ade is offline   Reply With Quote
Old Feb 4th, 2005, 11:19 AM   #6
Ooble
I eat cake for breakfast.
 
Ooble's Avatar
 
Join Date: Jul 2004
Location: In my box.
Posts: 4,434
Rep Power: 9 Ooble is on a distinguished road
Heh. Fair enough then. Good luck with your project.
__________________
Me :: You :: Them
Ooble is offline   Reply With Quote
Reply

Bookmarks

« Previous Thread in Forum | Next Thread in Forum »

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump




DaniWeb IT Discussion Community
All times are GMT -5. The time now is 12:01 PM.

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