RE: RES: [PHP] Game development approach

2005-03-25 Thread Jay Blanchard
[snip] Pretty interesting, Jay. So you have this script running as others interface with all the other stuff in the site? Just another question, you start it via web like a common script, but it is only accessed by you and it keeps on running? The server doesn't kill it if it keeps running indef

Re: RES: [PHP] Game development approach

2005-03-25 Thread maillists
On Friday 25 March 2005 09:37, Alexandre wrote: > I mean like a script I would start and it would keep running > constantly, checking for new commands in a queue, updating objects status, > can it be done or the server would kill it? > > Kind regards, > Alex PHP is server script and you would need

Re: RES: [PHP] Game development approach

2005-03-25 Thread Üstündað
Check PHP-CLI ( Command line interface ) You can run php script without client request. For example : /usr/local/bin/php -f /path_of_your_script/game.php arg1 arg2 & --- Alexandre <[EMAIL PROTECTED]> wrote: > Robert Restad wrote: > > I suggest you write a 'tick' engine, which i.e. > games like P

RE: RES: [PHP] Game development approach

2005-03-25 Thread Jay Blanchard
[snip] First thanks for your answer and your help. I would like to explore this concept of using the PHP. I mean, I've already coded some small games in C++, and implementing a game loop is kinda easy, since you have the control of all the data being processed. But PHP scripts, as I currently kn

Re: RES: [PHP] Game development approach

2005-03-25 Thread Alexandre
Robert Restad wrote: I suggest you write a 'tick' engine, which i.e. games like Planetarion use. This should be written in C or C++, compiled... You can run this using PHP of course, and run it from command line/shell, but PHP isnt ideal for this. If you have a decent server and not too much player

RES: [PHP] Game development approach

2005-03-24 Thread Robert Restad
I suggest you write a 'tick' engine, which i.e. games like Planetarion use. This should be written in C or C++, compiled... You can run this using PHP of course, and run it from command line/shell, but PHP isnt ideal for this. If you have a decent server and not too much players (i.e. more than a