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).

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

报告相同问题?