Files
doc-fr/reference/exec/functions/shell-exec.xml
Yannick Torres bdff1f0af4 use more entities
git-svn-id: https://svn.php.net/repository/phpdoc/fr/trunk@171895 c90b9560-bf6c-de11-be94-00142212c4b1
2004-11-01 21:32:27 +00:00

69 lines
1.8 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.7 $ -->
<!-- EN-Revision: 1.6 Maintainer: dams Status: ready -->
<refentry id="function.shell-exec">
<refnamediv>
<refname>shell_exec</refname>
<refpurpose>
Exécute une commande via le Shell et retourne le résultat sous forme de chaîne
</refpurpose>
</refnamediv>
<refsect1>
&reftitle.description;
<methodsynopsis>
<type>string</type><methodname>shell_exec</methodname>
<methodparam><type>string</type><parameter>cmd</parameter></methodparam>
</methodsynopsis>
<para>
<function>shell_exec</function> exécute la commande <parameter>cmd</parameter>
via le Shell et retourne le résultat sous forme de chaîne.
</para>
<para>
<function>shell_exec</function> est identique aux
<link linkend="language.operators.execution">opérateurs de backtick</link>.
</para>
<para>
<example>
<title>Exemple avec <function>shell_exec</function></title>
<programlisting role="php">
<![CDATA[
<?php
$output = shell_exec('ls -lart');
echo "<pre>$output</pre>";
?>
]]>
</programlisting>
</example>
</para>
&note.sm.disabled;
<para>
Voir aussi
<function>exec</function> et
<function>escapeshellcmd</function>.
</para>
</refsect1>
</refentry>
<!-- Keep this comment at the end of the file
Local variables:
mode: sgml
sgml-omittag:t
sgml-shorttag:t
sgml-minimize-attributes:nil
sgml-always-quote-attributes:t
sgml-indent-step:1
sgml-indent-data:t
indent-tabs-mode:nil
sgml-parent-document:nil
sgml-default-dtd-file:"../../../../manual.ced"
sgml-exposed-tags:nil
sgml-local-catalogs:nil
sgml-local-ecat-files:nil
End:
vim600: syn=xml fen fdm=syntax fdl=2 si
vim: et tw=78 syn=sgml
vi: ts=1 sw=1
-->