处理交互式流

expect:// PHP 4.3.0 及更高版(PECL)

  • expect://command

本封装协议默认未启用: 要使用 expect:// 封装协议,必须安装 Expect 扩展库,其来自 PECL

通过 expect:// 封装协议打开的流提供了通过 PTY 访问进程的 stdio,stdout 和 stderr 的许可。

表格 M-12. 封装协议概要

属性支持
allow_url_fopen 限制
允许读取
允许写入
允许附加
允许同时读取和写入
支持 stat()
支持 unlink()
支持 rename()
支持 mkdir()
支持 rmdir()



The CHM file was converted to HTM by Trial version of ChmDecompiler.
Download ChmDecompiler at: http://www.zipghost.com