Blazes
Blazes

Reputation: 4779

php function 'pcntl_exec' is undefined

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.

Upvotes: 1

Views: 4224

Answers (1)

KingCrunch
KingCrunch

Reputation: 132071

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

Upvotes: 3

Related Questions