<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.ftp.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'function.ftp-rawlist.php',
    1 => 'ftp_rawlist',
    2 => 'Restituisce un elenco dettagliato dei files nella directory in esame',
  ),
  'up' => 
  array (
    0 => 'ref.ftp.php',
    1 => 'FTP Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.ftp-raw.php',
    1 => 'ftp_raw',
  ),
  'next' => 
  array (
    0 => 'function.ftp-rename.php',
    1 => 'ftp_rename',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/ftp/functions/ftp-rawlist.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ftp-rawlist" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">ftp_rawlist</h1>
    <p class="verinfo">(PHP 4, PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ftp_rawlist</span> &mdash; <span class="dc-title">Restituisce un elenco dettagliato dei files nella directory in esame</span></p>

   </div>
   <div class="refsect1 unknown-1045" id="refsect1-function.ftp-rawlist-unknown-1045">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>ftp_rawlist</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$ftp_stream</code></span>, <span class="methodparam"><span class="type"><a href="language.types.string.php" class="type string">string</a></span> <code class="parameter">$directory</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

    <p class="para rdfs-comment">
     <span class="function"><strong>ftp_rawlist()</strong></span> esegue il comando FTP LIST,
     e restituisce il risultato sotto forma di array. Ogni elemento dell&#039;array corrisponde
     ad una linea di testo. Sull&#039;output non viene eseguito parsing.
     L&#039;identificatore di tipo di sistema restituito da <span class="function"><a href="function.ftp-systype.php" class="function">ftp_systype()</a></span>
     puo&#039; essere utilizzato per interpretare il risultato.
    </p>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 Esempio di funzione <span class="function"><strong>ftp_rawlist()</strong></span></strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br /><br /></span><span style="color: #FF8000">// stabilisce la connessione<br /></span><span style="color: #0000BB">$conn_id </span><span style="color: #007700">= </span><span style="color: #0000BB">ftp_connect</span><span style="color: #007700">(</span><span style="color: #0000BB">$ftp_server</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// si collega con username and password<br /></span><span style="color: #0000BB">$login_result </span><span style="color: #007700">= </span><span style="color: #0000BB">ftp_login</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_id</span><span style="color: #007700">, </span><span style="color: #0000BB">$ftp_user_name</span><span style="color: #007700">, </span><span style="color: #0000BB">$ftp_user_pass</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// ottiene l'elenco dei files di /<br /></span><span style="color: #0000BB">$buff </span><span style="color: #007700">= </span><span style="color: #0000BB">ftp_rawlist</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_id</span><span style="color: #007700">, </span><span style="color: #DD0000">'/'</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// chiude la connessione<br /></span><span style="color: #0000BB">ftp_close</span><span style="color: #007700">(</span><span style="color: #0000BB">$conn_id</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">// visualizza il contenuto del buffer<br /></span><span style="color: #0000BB">var_dump</span><span style="color: #007700">(</span><span style="color: #0000BB">$buff</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

      <div class="example-contents"><p>
       L&#039;esempio precedente produrra&#039; qualcosa di simile a:
      </p></div>
      <div class="example-contents screen">
<div class="cdata"><pre>
array(3) {
  [0]=&gt;
  string(65) &quot;drwxr-x---   3 vincent  vincent      4096 Jul 12 12:16 public_ftp&quot;
  [1]=&gt;
  string(66) &quot;drwxr-x---  15 vincent  vincent      4096 Nov  3 21:31 public_html&quot;
  [2]=&gt;
  string(73) &quot;lrwxrwxrwx   1 vincent  vincent        11 Jul 12 12:16 www -&gt; public_html&quot;
}
</pre></div><br />
      </div>
     </div>
    </p>
    <p class="para">
     Vedere anche <span class="function"><a href="function.ftp-nlist.php" class="function">ftp_nlist()</a></span>.
    </p>
   </div>

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