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: getprotobyname - 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

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

view this page in

getprotobyname

(PHP 4, PHP 5)

getprotobyname — プロトコル名のプロトコル番号を得る

説明

int getprotobyname ( string $name )

getprotobyname()は、プロトコル nameのプロトコル番号を/etc/protocolsから 取得して返します。

例 1540. getprotobyname() の例

<?php
$protocol
= 'tcp';
$get_prot = getprotobyname($protocol);
if (
$get_prot == -1) {
   
// 何も見つからなければ -1 を返します。
   
echo 'Invalid Protocol';
} else {
    echo
'Protocol #' . $get_prot;
}
?>

getprotobynumber()も参照ください。



add a note add a note User Contributed Notes
getprotobyname
There are no user contributed notes for this page.

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