system()
system - Execute an external program and display the output
Syntax
string system (
string $command,
int &$return_var)
Arguments
- command - The command that will be executed.
- return_var - If the return_var argument is present, then the return status of the executed command will be written to this variable.
Description
system() is just like the C version of the function in that it executes the given command and outputs the result.
Version
PHP 4, 5
Return value
Returns the last line of the command output on success, and FALSE on failure.