<?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-raw.php',
    1 => 'ftp_raw',
    2 => 'Invia un comando di qualsiasi tipo ad un server FTP',
  ),
  'up' => 
  array (
    0 => 'ref.ftp.php',
    1 => 'FTP Funzioni',
  ),
  'prev' => 
  array (
    0 => 'function.ftp-quit.php',
    1 => 'ftp_quit',
  ),
  'next' => 
  array (
    0 => 'function.ftp-rawlist.php',
    1 => 'ftp_rawlist',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'reference/ftp/functions/ftp-raw.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.ftp-raw" class="refentry">
   <div class="refnamediv">
    <h1 class="refname">ftp_raw</h1>
    <p class="verinfo">(PHP 5, PHP 7, PHP 8)</p><p class="refpurpose"><span class="refname">ftp_raw</span> &mdash; <span class="dc-title">Invia un comando di qualsiasi tipo ad un server FTP</span></p>

   </div>
   <div class="refsect1 unknown-1042" id="refsect1-function.ftp-raw-unknown-1042">
    <h3 class="title">Descrizione</h3>
     <div class="methodsynopsis dc-description">
      <span class="methodname"><strong>ftp_raw</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">$command</code></span>): <span class="type"><a href="language.types.array.php" class="type array">array</a></span></div>

    <p class="para rdfs-comment">
     Invia un <code class="parameter">command</code> di qualsiasi tipo al server FTP.
     Restituisce la risposta del server sotto forma di un array di stringhe.
     <span class="function"><strong>ftp_raw()</strong></span> non esegue il parsing della stringa di risposta,
     ne&#039; controlla se il comando e&#039; stato eseguito correttamente.

    </p>
    <p class="para">
     <div class="example" id="example-1">
      <p><strong>Example #1 Utilizzo di <span class="function"><strong>ftp_raw()</strong></span> per collegarsi in modo manuale ad un server FTP.</strong></p>
      <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$fp </span><span style="color: #007700">= </span><span style="color: #0000BB">ftp_connect</span><span style="color: #007700">(</span><span style="color: #DD0000">"ftp.example.com"</span><span style="color: #007700">);<br /><br /></span><span style="color: #FF8000">/* Equivalente a: <br />   ftp_login($fp, "joeblow", "secret"); */<br /></span><span style="color: #0000BB">ftp_raw</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">, </span><span style="color: #DD0000">"USER joeblow"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">ftp_raw</span><span style="color: #007700">(</span><span style="color: #0000BB">$fp</span><span style="color: #007700">, </span><span style="color: #DD0000">"PASS secret"</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
      </div>

     </div>
    </p>
    <p class="para">
     Vedi anche:
     <span class="function"><a href="function.ftp-exec.php" class="function">ftp_exec()</a></span>
    </p>
   </div>

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