Hide your secret files INSIDE photos, videos or other files with OmniHide PRO.

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);
echo "Cannot connect to server";

echo "Connect was successful - no errors on Port ".$port." at ".$site;


Discover upcoming movies

12 responses to “PHP Script – Open port check”

  1. looking forward for more articles on your blog Cool to read, worth learning! Keep it up! http://www.canadagoose-paris.com/doudoune-canada-

  2. zapatos mbt says:

    hope you will write more

  3. YouTube View says:

    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.

  4. 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!

  5. kuldeep Vyas says:


    this is very useful

  6. dewyprince says:

    fine script, thanks lot

  7. :D P1 says:

    Could you help me, please?

  8. reishi says:

    hi admin

    how about por 21 ?

  9. Mauricio says:

    Thanks, very useful

  10. MakiS says:

    hmhm nC.. u can make better 🙂

  11. Kumaran says:

    Thanks a lot. Good Work


We’re on Hostgator and we love it

Use coupon BLOGULATE994 and get 9.94$ flat off from any hosting package of your choice!

We're on Hostgator and are extremely happy with the service. Never down, cheap and powerful servers!
Use coupon BLOGULATE994 and get 9.94$ flat off from any hosting package of your choice!

Search Blogulate