September 2001
Intermediate to advanced
768 pages
32h 45m
English
void passthru(string cmd, [variable $return_value])
Executes command cmd in the system’s command interpreter and displays the output.An optional argument allows the return value to be captured.
Returns:
Nothing
Description:
passthru() attempts to execute cmd in the system’s command interpreter. PHP waits until the command interpreter returns before execution of the PHP script continues past the call to passthru(). If you’re using a UNIX-like operating system, you can redirect stdout to a file or /dev/null to avoid this.
Caution:
Some Windows command interpreters allow redirection to a special device, nul. As of PHP 4.0.7, redirecting the output of a command executed by passthru() to nul (that is, dir > nul) has no effect—even though ...
Read now
Unlock full access