一个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并删除即可使用了。

相关文章:

  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-11-28
  • 2021-12-24
  • 2021-06-17
猜你喜欢
  • 2021-11-28
  • 2021-11-15
  • 2021-11-19
  • 2021-06-19
  • 2021-06-16
  • 2021-07-05
  • 2021-09-29
相关资源
相似解决方案