$connection = fsockopen('hostname','port'); if (is_resource($connection) === true) { echo 'Port is open'; } else { echo 'Port is not open'; }
Post a Comment