<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.network.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.getservbyport.php',
    1 => 'getservbyport',
    2 => 'Ottiene il servizio Internet corrispondente ad una porta e ad un protocollo',
  ),
  'up' => 
  array (
    0 => 'ref.network.php',
    1 => 'Network Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.getservbyname.php',
    1 => 'getservbyname',
  ),
  'next' => 
  array (
    0 => 'function.header.php',
    1 => 'header',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/network/functions/getservbyport.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.getservbyport" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">getservbyport</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">getservbyport</span> &mdash; <span class="dc-title">
     Ottiene il servizio Internet corrispondente ad una porta e ad un protocollo
    </span></p>

   </div>
   <div class="refsect1 unknown-1099" id="refsect1-function.getservbyport-unknown-1099">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>getservbyport</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$porta</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$protocollo</code></span>): <span class="type"><a href="language.types.string.php" class="type string">string</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>getservbyport()</strong></span> restituisce il servizio Internet
     associato a <code class="parameter">porta</code> relativamente al
     <code class="parameter">protocollo</code> specificato come in <var class="filename">/etc/services</var>.
     <code class="parameter">protocollo</code> può essere sia <code class="literal">&quot;tcp&quot;</code>
     che <code class="literal">&quot;udp&quot;</code> (scritti in minuscolo).
    </p>
    <p class="para">
     Vedere anche: <span class="function"><a href="function.getservbyname.php" class="function">getservbyname()</a></span>.
    </p>
   </div>

  </div><?php manual_footer($setup); ?>