note 31886 deleted from function.getservbyname by cece

From: Date: Sat, 16 Aug 2003 16:44:03 +0000
Subject: note 31886 deleted from function.getservbyname by cece
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-54419@lists.php.net to get a copy of this message
Note Submitter: bjorn AT smokingmedia DOT com ---- an example: <?php $services = array("http", "ftp", "ssh", "telnet", "imap", "smtp", "nicname", "gopher", "finger", "pop3", "www"); foreach($services as $service){ $port = getservbyname($service, 'tcp'); echo $service . ": " . $port . "\n"; } // for a complete list see also: // http://www.iana.org/assignments/port-numbers ?>

« previous php.notes (#54419) next »