asynchronous - How to execute PHP function parallel -


i'm building report room temperature. temp sensor's use snmp protocol , php function get_snmp(). here works fine, 1 of sensors have legs , want protect this. example, execute 10 function get_snmp() different params of sensors responds , of them need more time. html page loads , view when function return value or return error. question - how execute each function get_snmp() in different thread/asynchronous? want load/ view page immediately. want achieve like:

  temp1 : 10 c
temp2: waiting...
temp3: 20 c
temp4: 30 c
temp5: waiting...
temp6: not responds...


Comments

Popular posts from this blog

python - Operations inside variables -

Generic Map Parameter java -

arrays - What causes a java.lang.ArrayIndexOutOfBoundsException and how do I prevent it? -