If you ask me, I'll suggest you use java. It'll run the same way on every operating system and it's compatible. You can also use SSL (correct me if I'm wrong). I've seen pretty nice turn-based games done by it like billiard, tank war thingy, and some others. I'm going to learn java after I'm done with javascript and php. We are going to learn it in school and I want to learn it before that so I can score an A again!

Anyway, if you want to use PHP for making a game, it's going to be complicated. What I would do is use loops to find out which action has to be executed and then execute that action(displaying it with ajax of course). You could also use switch, but I've never really liked switch..
Comment/Reply (w/o sign-up)