• PHP Video Tutorials

PHP - Function popen()



The popen() function can open a pipe to the program specified in the command parameter, and return false if an error occurs.

Syntax

resource popen ( string $command , string $mode )

This function can open a pipe to the process executed by forking the command given by command.

Example

<?php
   $handle = popen("/bin/ls", "r");
?>
php_function_reference.htm
Advertisements