Two important parameters have a php file:
$szamol
This specifies the number of seconds to wait . ( Need to start from the current time ): When time is up , call these functions:
$jatek = new jatek( $_SESSION['id'] );
$jatek->epuletkesz();
I know I can not do it in PHP countdown , but I do not know to pass the two parameters in php to javascript function .
For example, javascript setTimeout () function might be good, but I can not give it to it that these two parameters php .
document.location. The easiest way is to pass them as _GET variables (eg.document.location = 'http://myserver.com/myscript.php?variable='+variableNameInJavaScript;$jatekis a class, and theepuletkesz();is a function of the$jatekclass. The main things: There are buildings ( Web game will be ) and if the player wants to develop the building will develop the tar button. Each building is added separately to the amount of time built up . (For example : 0:00:15 ) . The$szamolgive the time in seconds , the current time I start the counter and when the time expires, the$jatek- > epuletkesz ()when times run out)