September 2001
Intermediate to advanced
768 pages
32h 45m
English
string system(string cmd, [variable return_value)
Executes command cmd in the system’s command interpreter and returns the last line of output. An optional argument allows the return value to be captured.
Returns:
Last line of output from command cmd ; FALSE if the command cannot be run
Description:
system() attempts to execute cmd in the system’s command interpreter. PHP waits until the command interpreter returns before execution of the script continues past the call to system().
Output from the command is sent directly to stdout.
If the return_value argument is set, the return value of the command is stored in this variable.
Version:
PHP 3+, PHP 4+
Examples:
Read now
Unlock full access