A way to check ports with PHP (Multithreading?)

listed in answer

A way to check ports with PHP (Multithreading?)
0 votes, 0.00 avg. rating (0% score)

ANSWER:

You can use fsockopen() to scan ports, but each PHP script runs on 1 thread.

http://php.net/manual/en/function.fsockopen.php

by Before from http://stackoverflow.com/questions/10277893