I have to select a list of IP addresses from a database(may run into 1000s) and open a connection to each one of them
I want to know if such an operation will affect the performance of the server its hosted on
basically What i'll be doing is this:
$fp = fsockopen("udp://$sendtoIP", 692, $errno, $errstr);
fputs ($fp, "$txtmsg");
fclose($fp);
the above 3 lines will run in a loop(over 1000 times) with the sendtoIP changing for each iteration.
Is there a better more efficient wayto do this possibly where I can reuse the $fp handle... I'm running this on a windows machine.
Thanks for any help.