Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : Network Functions : getservbyport

getservbyport

Get Internet service which corresponds to port and protocol (PHP 4, PHP 5)
string getservbyport ( int port, string protocol )


Related Examples ( Source code ) » getservbyport


Code Examples / Notes » getservbyport

q9603062

Like the previous post of palands, the protcol tcp must be in lower case, either quoted or unquoted..
Example:
$value=getservbyport(31337, "tcp");
Uppercase will not work.


paland

Example:
$value=getservbyport(137, "udp");
The same goes for getservbyname()


Change Language


Follow Navioo On Twitter
checkdnsrr
closelog
debugger_off
debugger_on
define_syslog_variables
dns_check_record
dns_get_mx
dns_get_record
fsockopen
gethostbyaddr
gethostbyname
gethostbynamel
getmxrr
getprotobyname
getprotobynumber
getservbyname
getservbyport
header
headers_list
headers_sent
inet_ntop
inet_pton
ip2long
long2ip
openlog
pfsockopen
setcookie
setrawcookie
socket_get_status
socket_set_blocking
socket_set_timeout
syslog
eXTReMe Tracker