popen()
popen - Opens process file pointer
Syntax
resource popen (
string $command,
string $mode)
Arguments
- command - The command
- mode - The mode
Description
Opens a pipe to a process executed by forking the command given by command.
Version
PHP 4, 5
Return value
Returns 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().