PHP Script – Open port check
Got this from Vinu’s blog. This simple script will attempt to connect to the site:port using fsockopen to determine if a service is running on the port.
< ?php
$site = "vinuthomas.com";
$port = 80;
$fp = fsockopen($site,$port,$errno,$errstr,10);
if(!$fp)
{
echo "Cannot connect to server";
}
else{
echo "Connect was successful - no errors on Port ".$port." at ".$site;
fclose($fp);
}
?>
thanks,
Thanks a lot. Good Work
hmhm nC.. u can make better 🙂
Thanks, very useful
hi admin
how about por 21 ?
Could you help me, please?
fine script, thanks lot
Thnx
this is very useful
It makes me feel so surprise.I never know there is such a wonderful place that I can find what I need,The site offers different kinds of handbags,sunglasses and jeans etc with world-famous brands.They are all cheap,nice with high quality.I believe it won’t let you down.Join it now!
If a user wants to check a series of ports like from port 40 to port 80 then how can he do that ? Can you please elaborate this a little ? Many Thanks for the efforts you have put in so far.
hope you will write more
looking forward for more articles on your blog Cool to read, worth learning! Keep it up! http://www.canadagoose-paris.com/doudoune-canada-…