A gsm device sends data in each 3 seconds. 100 such devices are sending messages and there is a device to accept these messages. I want to insert these messages in mysql table in each 5 minutes using php.
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Use cronjob to execute each 5 minutes a php script that will introduce the date in your db. Php scripts are executed in the webserver without persistence and this is not a php job to execute itself at some intervals. Some things can be done in PHP and for others are other tools available.
Alternatively you could use javascript and setTimeout function to call for a php script but Js is client executed and is not reliable enough for what you want.