略微加速

PHP官方手册 - 互联网笔记

PHP - Manual: expect://

2024-04-23

expect://

expect://处理交互式的流

说明

expect:// 封装协议打开的数据流 PTY 通过提供了对进程 stdio、stdout 和 stderr 的访问。

注意: 该封装协议默认未开启
为了使用 expect:// 封装器,你必须安装 » PECL 上的 » Expect 扩展。

expect:// (PECL)

用法

  • expect://command

可选项

封装协议概要
属性 支持
allow_url_fopen 影响 No
允许读取 Yes
允许写入 Yes
允许添加 Yes
允许同时读和写 No
支持 stat() No
支持 unlink() No
支持 rename() No
支持 mkdir() No
支持 rmdir() No

范例

add a noteadd a note

User Contributed Notes

There are no user contributed notes for this page.

官方地址:https://www.php.net/manual/en/wrappers.expect.php

北京半月雨文化科技有限公司.版权所有 京ICP备12026184号-3