getservbyport: get server by port : DNS « Network « PHP






getservbyport: get server by port


<?php
   echo "Port 80's default service is: ".getservbyport(80, "tcp");
?>

           
       








Related examples in the same category

1.getservbyname: get server by name
2.Check DNS error
3.Get MX records corresponding to a given Internet host name