duai4379 2011-10-06 19:35
浏览 146
已采纳

php函数'pcntl_exec'未定义

Would anyone know why my pcntl_exec is undefined? I have php 5.2.14 - the manual says it should be defined in php5. I need an alternative to exec as my hosting provider recently locked-down these: exec, passthru, shell_exec, system, proc_open, popen, curl_multi_exec

I got the list from: ini_get("disable_functions"). I see no reason for it to be undefined.

  • 写回答

1条回答 默认 最新

  • doutiao2540 2011-10-06 19:38
    关注

    Just read the installation instructions

    Process Control support in PHP is not enabled by default. You have to compile the CGI or CLI version of PHP with --enable-pcntl configuration option when compiling PHP to enable Process Control support.

    and

    Note:

    Currently, this module will not function on non-Unix platforms (Windows).

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 创建一个数据库(要创建的表和记事本的代码截图))
  • ¥15 有没有整苹果智能分拣线上图像数据
  • ¥20 有没有人会这个东西的
  • ¥15 cfx考虑调整“enforce system memory limit”参数的设置
  • ¥30 航迹分离,航迹增强,误差分析
  • ¥15 Chrome Manifest扩展引用Ajax-hook库拦截请求失败
  • ¥15 用Ros中的Topic通讯方式控制小乌龟的速度,走矩形;编写订阅器代码
  • ¥15 LLM accuracy检测
  • ¥15 pycharm添加远程解释器报错
  • ¥15 如何让子窗口鼠标滚动独立,不要传递消息给主窗口