I want to get list which computers are online or offline on local network but I have to use PHP, HTML and JavaScript for this.
I used the exec command in PHP with “ping servername” but it makes too slow so I can get only 7 or 8 then PHP gives error computers situation but I need 50 computers situation.
I tried to reach a file from all computers like \lab4-01\c$ but it didn’t work in PHP or JavaScript, but I failed again.
- How can I solve this question?
Using ping is not a good idea since some networks filter ICMP traffic.
I’d use php functin fsockopen(); http://php.net/manual/en/function.fsockopen.php