<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/language.operators.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'it',
  ),
  'this' => 
  array (
    0 => 'language.operators.execution.php',
    1 => 'Operatori di esecuzione',
    2 => 'Operatori di esecuzione',
  ),
  'up' => 
  array (
    0 => 'language.operators.php',
    1 => 'Operatori',
  ),
  'prev' => 
  array (
    0 => 'language.operators.errorcontrol.php',
    1 => 'Operatori di controllo errori',
  ),
  'next' => 
  array (
    0 => 'language.operators.logical.php',
    1 => 'Operatori logici',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'it',
    'path' => 'language/operators/execution.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="language.operators.execution" class="sect1">
 <h2 class="title">Operatori di esecuzione</h2>
 <p class="para">
  PHP supporta un operatore di esecuzione: backticks (``). Si noti che
  non sono apostrofi o apici! PHP cercherà di eseguire
  il contenuto dei backticks come comando di shell; sarà restituito l&#039;output
  (ovvero, non sarà semplicemente inviato all&#039;output, ma potrà
  essere assegnato ad una variabile). L&#039;uso dell&#039;operatore backtick è identico
  alla funzione <span class="function"><a href="function.shell-exec.php" class="function">shell_exec()</a></span>.
  <div class="informalexample">
   <div class="example-contents">
<div class="annotation-interactive phpcode"><code><span style="color: #000000"><span style="color: #0000BB">&lt;?php<br />$output </span><span style="color: #007700">= `</span><span style="color: #DD0000">ls -al</span><span style="color: #007700">`;<br />echo </span><span style="color: #DD0000">"&lt;pre&gt;</span><span style="color: #0000BB">$output</span><span style="color: #DD0000">&lt;/pre&gt;"</span><span style="color: #007700">;<br /></span><span style="color: #0000BB">?&gt;</span></span></code></div>
   </div>

  </div>
 </p>
 <blockquote class="note"><p><strong class="note">Nota</strong>: 
  <p class="para">
   L&#039;operatore backtick è disabilitato quando
   è disabilitata <span class="function"><a href="function.shell-exec.php" class="function">shell_exec()</a></span>.
  </p>
 </p></blockquote>
 <blockquote class="note"><p><strong class="note">Nota</strong>: 
  <p class="para">
   Diversamente da altri linguaggi, i backtick non hanno un significato speciale
   all&#039;interno di stringhe delimitate da doppi apici.
  </p>
 </p></blockquote>

 <div class="sect2">
  <h3 class="title">Vedere anche:</h3>
  <p class="para">
   <ul class="simplelist">
    <li><a href="ref.exec.php" class="link">Funzioni per l&#039;Esecuzione di Programmi</a></li>
    <li><span class="function"><a href="function.popen.php" class="function">popen()</a></span></li>
    <li><span class="function"><a href="function.proc-open.php" class="function">proc_open()</a></span></li>
    <li><a href="features.commandline.php" class="link">Utilizzo di PHP da linea di comando</a></li>
   </ul>
  </p>
 </div>
</div><?php manual_footer($setup); ?>