KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
The hosting service that I use currently does not let me use sockets, probably for good reason on their part. They do, however, let me use fsockopen . I was wondering what the difference is, because some scripts that worked with socket_create and even stream_socket_server , do not work with fsockopen . That said, if fsockopen should work, my code is listed below. What it does is it listens on its own ip address for incoming udp packets and reads them. Thanks $sock = fsockopen("udp://x.x.x.x", $port); while(1) { $buf = fread($sock, 200); flush(); ob_flush(); }
Tags (comma-separated)
Save Edits
Cancel