php中proc_open函数

一个php函数,执行一个命令,并且打开用来输入/输出的文件指针。 说白了就是可以操作执行服务器命令行。

在Laravel开发中,碰到用redis需要proc_open函数,我们只需要打开php.ini找到如下这样的地方

disable_functions = passthru,exec,system,chroot,scandir,chgrp,chown,shell_exec,proc_open,proc_get_status,popen,ini_alter,ini_restore,dl,openlog,syslog,readlink,symlink,popepassthru,stream_socket_server

我们只需要找到proc_open并删除即可使用了。

原文地址:https://www.cnblogs.com/caibaotimes/p/13714383.html