PHP popen() 函数
PHP 教程
· 2019-01-25 13:56:29
定义和用法
popen() 函数使用 command 参数打开进程文件指针。
如果出错,该函数返回 FALSE。
语法
popen(command,mode)
| 参数 | 描述 |
|---|---|
| command | 必需。规定要执行的命令。 |
| mode | 必需。规定连接模式。 可能的值:
|
实例
<?php
$file = popen("/bin/ls","r");
//some code to be executed
pclose($file);
?>
点击查看所有 PHP 教程 文章: https://codercto.com/courses/l/5.html
The Big Red Fez
Seth Godin / Free Press / 2002-01-15 / USD 11.00
YOUR WEB SITE IS COSTING YOU MONEY. IT'S ALSO FILLED WITH SIMPLE MISTAKES THAT TURN OFF VISITORS BEFORE THEY HAVE A CHANCE TO BECOME CUSTOMERS. According to marketing guru Seth Godin, a web s......一起来看看 《The Big Red Fez》 这本书的介绍吧!