Our source is open
The syntax highlighted source is automatically generated by PHP from
the plaintext script.
If you're interested in what's behind the several functions we
used, you can always take a look at the source of the following files:
Of course, if you want to see the source
of this page, we have it available.
You can also browse the SVN repository for this website on
svn.php.net.
Source of: /manual/en/book.exec.php
<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/refs.fileprocess.process.inc";
$setup = array (
'home' =>
array (
0 => 'index.php',
1 => 'PHP Manual',
),
'head' =>
array (
0 => 'UTF-8',
1 => 'en',
),
'this' =>
array (
0 => 'book.exec.php',
1 => 'Program execution',
),
'up' =>
array (
0 => 'refs.fileprocess.process.php',
1 => 'Process Control Extensions',
),
'prev' =>
array (
0 => 'refs.fileprocess.process.php',
1 => 'Process Control Extensions',
),
'next' =>
array (
0 => 'intro.exec.php',
1 => 'Introduction',
),
);
$setup["toc"] = $TOC;
$setup["parents"] = $PARENTS;
manual_setup($setup);
manual_header();
?>
<div>
<h1 class="title">System program execution</h1>
<ul class="chunklist chunklist_book"><li><a href="intro.exec.php">Introduction</a></li><li><a href="exec.setup.php">Installing/Configuring</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="exec.requirements.php">Requirements</a></li><li><a href="exec.installation.php">Installation</a></li><li><a href="exec.configuration.php">Runtime Configuration</a></li><li><a href="exec.resources.php">Resource Types</a></li></ul></li><li><a href="exec.constants.php">Predefined Constants</a></li><li><a href="ref.exec.php">Program execution Functions</a><ul class="chunklist chunklist_book chunklist_children"><li><a href="function.escapeshellarg.php">escapeshellarg</a> — Escape a string to be used as a shell argument</li><li><a href="function.escapeshellcmd.php">escapeshellcmd</a> — Escape shell metacharacters</li><li><a href="function.exec.php">exec</a> — Execute an external program</li><li><a href="function.passthru.php">passthru</a> — Execute an external program and display raw output</li><li><a href="function.proc-close.php">proc_close</a> — Close a process opened by proc_open and return the exit code of that process</li><li><a href="function.proc-get-status.php">proc_get_status</a> — Get information about a process opened by proc_open</li><li><a href="function.proc-nice.php">proc_nice</a> — Change the priority of the current process</li><li><a href="function.proc-open.php">proc_open</a> — Execute a command and open file pointers for input/output</li><li><a href="function.proc-terminate.php">proc_terminate</a> — Kills a process opened by proc_open</li><li><a href="function.shell-exec.php">shell_exec</a> — Execute command via shell and return the complete output as a string</li><li><a href="function.system.php">system</a> — Execute an external program and display the output</li></ul></li></ul></div><?php manual_footer(); ?>