action repeating
Posted: Fri Feb 11, 2005 3:04 am
HI
I need to create server for one game. But for seerver limits iI must use php instead java. I started yesterday with learning and I dont know if and how this could be done in php: Server must be running everytime from time he is deployed on server to shutdown. He must check game state and be performing nescessary actions every 1/10 of second. Like this in java language:
public void run()
{
while(isALive)
{
//prikazy...
Thread.sleep(100);
}
}
How is it with running this infinity script on server? Are with this any problems??
Thanks for answers
I need to create server for one game. But for seerver limits iI must use php instead java. I started yesterday with learning and I dont know if and how this could be done in php: Server must be running everytime from time he is deployed on server to shutdown. He must check game state and be performing nescessary actions every 1/10 of second. Like this in java language:
public void run()
{
while(isALive)
{
//prikazy...
Thread.sleep(100);
}
}
How is it with running this infinity script on server? Are with this any problems??
Thanks for answers