philip Wed Jul 14 13:17:14 2004 EDT
Modified files:
/phpdoc/en/reference/exec/functions shell-exec.xml
Log:
Added a simple example and see also exec().
http://cvs.php.net/diff.php/phpdoc/en/reference/exec/functions/shell-exec.xml?r1=1.4&r2=1.5&ty=u
Index: phpdoc/en/reference/exec/functions/shell-exec.xml
diff -u phpdoc/en/reference/exec/functions/shell-exec.xml:1.4
phpdoc/en/reference/exec/functions/shell-exec.xml:1.5
--- phpdoc/en/reference/exec/functions/shell-exec.xml:1.4 Tue Dec 16 12:05:31
2003
+++ phpdoc/en/reference/exec/functions/shell-exec.xml Wed Jul 14 13:17:14 2004
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.4 $ -->
+<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/exec.xml, last change in rev 1.2 -->
<refentry id='function.shell-exec'>
<refnamediv>
@@ -18,7 +18,26 @@
This function is identical to the <link
linkend="language.operators.execution">backtick operator</link>.
</para>
+ <para>
+ <example>
+ <title>A <function>shell_exec</function> example</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+$output = shell_exec('ls -lart');
+echo "<pre>$output</pre>";
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
+
¬e.sm.disabled;
+
+ <para>
+ See also <function>exec</function> and
+ <function>escapeshellcmd</function>.
+ </para>
</refsect1>
</refentry>