<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> <html> <head> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> <title>Process Interaction Streams</title> </head> <body><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="wrappers.audio.html">ogg://</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.html">Security</a></div> <div class="up"><a href="wrappers.html">Supported Protocols and Wrappers</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div><hr /><div id="wrappers.expect" class="refentry"> <div class="refnamediv"> <h1 class="refname">expect://</h1> <p class="refpurpose"><span class="refname">expect://</span> — <span class="dc-title">Process Interaction Streams</span></p> </div> <div class="refsect1 description" id="refsect1-wrappers.expect-description"> <h3 class="title">Description</h3> <p class="para"> Streams opened via the <var class="filename">expect://</var> wrapper provide access to process'es stdio, stdout and stderr via PTY. </p> <blockquote class="note"><p><strong class="note">Note</strong>: <strong>This wrapper is not enabled by default</strong><br /> <span class="simpara"> In order to use the <var class="filename">expect://</var> wrapper you must install the <a href="http://pecl.php.net/package/expect" class="link external">» Expect</a> extension available from <a href="http://pecl.php.net/" class="link external">» PECL</a>. </span> </p></blockquote> <p class="simpara"><var class="filename">expect://</var> PHP 4.3.0 and up (PECL) </p> </div> <div class="refsect1 usage" id="refsect1-wrappers.expect-usage"> <h3 class="title">Usage</h3> <ul class="itemizedlist"> <li class="listitem"><span class="simpara"><var class="filename">expect://command</var></span></li> </ul> </div> <div class="refsect1 options" id="refsect1-wrappers.expect-options"> <h3 class="title">Options</h3> <p class="para"> <table class="doctable table"> <caption><strong>Wrapper Summary</strong></caption> <thead> <tr> <th>Attribute</th> <th>Supported</th> </tr> </thead> <tbody class="tbody"> <tr> <td>Restricted by <a href="filesystem.configuration.html#ini.allow-url-fopen" class="link">allow_url_fopen</a></td> <td>No</td> </tr> <tr> <td>Allows Reading</td> <td>Yes</td> </tr> <tr> <td>Allows Writing</td> <td>Yes</td> </tr> <tr> <td>Allows Appending</td> <td>Yes</td> </tr> <tr> <td>Allows Simultaneous Reading and Writing</td> <td>No</td> </tr> <tr> <td>Supports <span class="function"><a href="function.stat.html" class="function">stat()</a></span></td> <td>No</td> </tr> <tr> <td>Supports <span class="function"><a href="function.unlink.html" class="function">unlink()</a></span></td> <td>No</td> </tr> <tr> <td>Supports <span class="function"><a href="function.rename.html" class="function">rename()</a></span></td> <td>No</td> </tr> <tr> <td>Supports <span class="function"><a href="function.mkdir.html" class="function">mkdir()</a></span></td> <td>No</td> </tr> <tr> <td>Supports <span class="function"><a href="function.rmdir.html" class="function">rmdir()</a></span></td> <td>No</td> </tr> </tbody> </table> </p> </div> <div class="refsect1 examples" id="refsect1-wrappers.expect-examples"> <h3 class="title">Examples</h3> </div> </div><hr /><div class="manualnavbar" style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="wrappers.audio.html">ogg://</a></div> <div class="next" style="text-align: right; float: right;"><a href="security.html">Security</a></div> <div class="up"><a href="wrappers.html">Supported Protocols and Wrappers</a></div> <div class="home"><a href="index.html">PHP Manual</a></div> </div></body></html>