Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: getservbyport - Manual
[go: Go Back, main page]

PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

header" width="11" height="7"/> <getservbyname
Last updated: Thu, 03 May 2007

view this page in

getservbyport

(PHP 4, PHP 5)

getservbyport — ポートおよびプロトコルに対応するインターネットサービスを得る

説明

string getservbyport ( int $port, string $protocol )

getservbyport()は、/etc/servicesに基づき 指定したプロトコルprotocolに関して ポートportに関連するインターネットサービスを 返します。protocolは、TCP またはUDPのどちらかです。

getservbyname()も参照ください。



add a note add a note User Contributed Notes
getservbyport
q9603062 at topaz dot cqu dot edu dot au
16-Jan-2001 07:28
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 at stetson dot edu
30-Nov-2000 09:00
Example:
$value=getservbyport(137, "udp");

The same goes for getservbyname()

header" width="11" height="7"/> <getservbyname
Last updated: Thu, 03 May 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites