My mobile phone 19:23:11 php, do a time to open the lottery function, as long as the user enters the time to open the lottery

php, do a time-to-time lottery function. As long as the user enters the lottery time, the code here will open the lottery at this time. Excuse me, what technology can be realized? The timer is too expensive!

Php
Jan.02,2022

crontab learn about


what do you mean by too much timer overhead? Generally, small timing functions can be realized with crontab. Large-scale, can be implemented using a scheduled task system provided by a third party.


crontab+ Database record Lottery time + PHP script to determine whether it is Lottery time

MySQL Query : SELECT * FROM `codeshelper`.`v9_news` WHERE status=99 AND catid='6' ORDER BY rand() LIMIT 5
MySQL Error : Disk full (/tmp/#sql-temptable-64f5-1b34c14-40f7d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
MySQL Errno : 1021
Message : Disk full (/tmp/#sql-temptable-64f5-1b34c14-40f7d.MAI); waiting for someone to free some space... (errno: 28 "No space left on device")
Need Help?