PHP function popen()
Availability in PHP 4.0
Opens process file pointer
Parameters
| Parameter | Data type | Default value | Note |
|---|---|---|---|
$command |
string |
not | The command |
$mode |
string |
not | The mode |
Return values
resource
a file pointer identical to that returned by fopen, except that it is unidirectional (may only be used for reading or writing) and must be closed with pclose. This pointer may be used with fgets, fgetss, and fwrite.
If an error occurs, returns false.