Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想用 PHP 模拟 Telnet。我的问题是:我proc_open用来执行命令 telnet。在运行 telnet 时,如何发送此命令的参数,例如:open 192.168.1.1
proc_open
open 192.168.1.1
谢谢!
proc_open就像一个更灵活popen的写到你在管道上使用 fwrite 的进程。
popen
请参阅http://uk.php.net/manual/en/function.proc-open.php上的示例 #1