Home » Tag Archives: check ssl port

Tag Archives: check ssl port

check ssl port in shared hosting is closed

Check ssl port in shared hosting is closed, use the php code to check if it is open. Here use gmail smtp for checking. $fp = fsockopen("www.google.com", 80, $errno, &$errstr, 10); // work fine if (!$fp) echo "www.google.com - $errstr ($errno)n"; else echo "www.google.com - okn"; $fp = fsockopen("smtp.gmail.com", 465, $errno, $errstr, 10); // NOT work if (!$fp) echo "smtp.gmail.com ...

Read More »