Gen. partnerAlgotech

PHP function popen()

Opens process file pointer

|
September 11, 2019

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.

Other resources

Official popen documentation

Loading comments...

Stay in the loop

Subscribe to our newsletter and get the latest cybersecurity news delivered straight to your inbox.

Your data is safe. You can unsubscribe from the newsletter at any time.