Original Post
I was planning to write an online, multi-player game in PHP. But as I think about this more, about what I want to do, I wonder if PHP alone can pull this off. To be honest, I'm new at PHP, and this will be my first online attempt. I don't think I'm incapable, though. I've been doing research for this game for too long to give up now, and I have seen it down before. Hm, let me give an example of why I'm concerned. For starters, this is a medieval strategy/war game. I know, there's lots of those, but none are to my liking. I want to make one that's free of fantasy, closer to the Hundred Years War. Anyway, for example, you send your troops to attack a tower (to seige) far off, and the script determines that it will literally take 48 real-time hours for your troops to even reach their target destination (I think one minute of real-time would equal one hour of game time, so 24 minutes = a day, etc). Anyway, if no one was even playing, I'd still want the troops to get there and start attacking in 48 hours. These battles will happen independantly of whether anyone is playing at the time, or not. Lots of things like this need to be going on in the background, like farmers harvesting their crops, for instance. Pretty much all of the time. I don't know enough about PHP to know for sure, but I'm going to take a wild guess and assume that I'll need to learn something else to do this legwork. Can anyone fill me in and tell me what I should do? If PHP can't do this background work, what could? How would you do it?