PHP Manual
This manual is provided as a courtesy. It is not an official source. Please check php.net for updated information.
(no version information, might be only in CVS)
Execute command via Bourne shell, and open the PTY stream to the process.
Command to execute.
Returns an open PTY stream to the process'es stdio, stdout and stderr.
On failure this function returns FALSE.
Example 1. expect_popen() example
<?php// Login to the PHP.net CVS repository:$stream = expect_popen ("cvs -d :pserver:anonymous@cvs.php.net:/repository login");sleep (3);fwrite ($stream, "phpfi\n");fclose ($stream);?>