美文网首页
php中proc_open函数

php中proc_open函数

作者: elileo | 来源:发表于2019-02-15 19:16 被阅读0次

    http://www.php.net/manual/zh/function.proc-open.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并删除即可使用了。

    相关文章

      网友评论

          本文标题:php中proc_open函数

          本文链接:https://www.haomeiwen.com/subject/mzimeqtx.html