2011-10-06 19:35
浏览 135


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.

图片转代码服务由CSDN问答提供 功能建议

有人知道为什么我的 pcntl_exec 未定义? 我有php 5.2.14 - 手册说它应该在 PHP5。 我需要替代exec作为我的托管服务提供商最近锁定这些:exec,passthru,shell_exec,system,proc_open,popen,curl_multi_exec

我从以下列表中获取了列表: ini_get ( “disable_functions选项”)。 我认为没有理由将其定义为未定义。

  • 写回答
  • 好问题 提建议
  • 追加酬金
  • 关注问题
  • 邀请回答

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.



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

    解决 无用
    打赏 举报

相关推荐 更多相似问题