You are here: Re: RES: [PHP] Game development approach « PHP « IT news, forums, messages
Re: RES: [PHP] Game development approach

Posted by Fatih "άstόndaπ on 03/25/05 16:44

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 <mech39@terra.com.br> wrote:
> 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 players (i.e.
> > more than a hundred simultaneous players), then
> PHP will do. Any more
> > than this, and I doubt PHP can handle without
> choking the server.
> >
>
> Hello Robert,
>
> 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 know of, are only run when
> requested by the client, and the when they finish
> execution then they're gone. I
> never tried, but could it be done a game loop in
> PHP? 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 General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>

__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com

 

Navigation:

[Reply to this message]


УдалСнная Ρ€Π°Π±ΠΎΡ‚Π° для программистов  •  Как Π·Π°Ρ€Π°Π±ΠΎΡ‚Π°Ρ‚ΡŒ Π½Π° Google AdSense  •  England, UK  •  ΡΡ‚Π°Ρ‚ΡŒΠΈ Π½Π° английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация