php - How can two scripts use the same port at the same time? -


i'm trying set "server" script in php, should run limited amount of time in background. multiple instances of script may run @ same time. unfortunately fsockopen() doesn't let me use same port @ same time 2 different scripts, others fail in error :(

is there way around this?

php doesnot support multi-threading, there alternatives it, not best in slang word- "workable".

and listen on specific port using php, use socket_listen, socket_bind, socket_create, etc., functions of php, may have on stream_select functions too... if helps.

recommended page parallel processing in php


Comments

Popular posts from this blog

css - Which browser returns the correct result for getBoundingClientRect of an SVG element? -

gcc - Calling fftR4() in c from assembly -

Function that returns a formatted array in VBA -