I need to check if port 80 is up for the accessing IP.
I have tried
$checkport = @fsockopen($ip, $port, $errnum, $errstr, 2); //The 2 is the time of ping in secs
This is giving a result. But recently I have found that port 80 is up for access from normal connection is also returning as Port 80 up.
Reason I found was : ISP had enabled port80 for those accessing my site.
Can anyone help me out in this regards.
Thanks in advance.
Adarsh