开发者

How to receive UDP broadcasts with PHP

开发者 https://www.devze.com 2023-02-09 04:08 出处:网络
I am trying to receive a repe开发者_开发问答ated UDP broadcast with PHP and display it on a webpage on local host.

I am trying to receive a repe开发者_开发问答ated UDP broadcast with PHP and display it on a webpage on local host.

How would I accomplish this?


I would most likely have a daemon or server process running that would be responsible for receiving the UDP broadcast and appending it to either a file or database (this could be implemented in any language). I would then have a PHP page that either reads the file or queries the database for results and echoing the results on the page.

If you're looking for live updates, then I'd be adding some jQuery/AJAX scripting magic.

0

精彩评论

暂无评论...
验证码 换一张
取 消