Using PHP, how can we read/listen a UDP port in Linux server and save the incoming data to MYSQL database. Is it possible to set a PHP file as a cron/Daemon to do this task. How can we do this. Please help me.
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.
to listen an UDP with php you can use sockets. There is a good example to start with. And about your second question, yes, you can use either cron launch of your script or php like a daemon.