PHP - Timer - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: Other (
https://sampforum.blast.hk/forumdisplay.php?fid=7)
+--- Forum: Everything and Nothing (
https://sampforum.blast.hk/forumdisplay.php?fid=23)
+--- Thread: PHP - Timer (
/showthread.php?tid=583494)
PHP - Timer -
Maximun - 28.07.2015
hi all, it's possible to put a timer in PHP code like this in SAMP :
SetTimerEx
and thanks everyone
Re: PHP - Timer -
Sergei - 28.07.2015
I don't know what exactly would you like to achieve, but equivalent would probably be a cronjob in this case.
Re: PHP - Timer -
Abagail - 28.07.2015
http://stackoverflow.com/questions/8...op-a-timer-php
****** it, there are plenty of results.
Re: PHP - Timer -
Maximun - 28.07.2015
@Sergei: for example whene someone deceived in his password you see an error message for a time (5 sec almost) and once this message hide
@Abagail: Thanks for your answer but not this exactly
Re: PHP - Timer -
Sergei - 28.07.2015
Oh, you would use ajax in that case probably. Search stackoverflow or any other of millions of forums that are dedicated to web development.
Re: PHP - Timer -
Maximun - 28.07.2015
@Sergei: ok thanks anyway
Re: PHP - Timer -
Mauzen - 28.07.2015
Javascript is probably the more wide-spread way to achieve this.
Havent worked with ajax a lot, so I cant give you recommend which one is easier to use.
Re: PHP - Timer -
RebeloX - 29.07.2015
Quote:
Originally Posted by Mauzen
Javascript is probably the more wide-spread way to achieve this.
Havent worked with ajax a lot, so I cant give you recommend which one is easier to use.
|
I guess now the easiest way to use ajax is via jQuery.