PHP Velho Oeste 2024

安装

在 PHP 中进程控制支持默认关闭。需要使用 --enable-pcntl 配置选项重新编译 PHP 的 CGI 或 CLI 版本以打开进程控制支持。

注意:

当前,这个模块没有非 Unix 平台可用的函数(即非 Unix 类系统不支持此模块)。

add a note add a note

User Contributed Notes 1 note

up
-6
diogo-nechtan at tagon8inc dot com
11 years ago
Manual installation on Mountain Lion (OS X 10.8)

first: Download the php source
(e.g. $ wget http://br.php.net/get/php-5.3.15.tar.gz/from/this/mirror)

nechtan$ sudo su
sh-3.2# tar -zxvf php-5.3.15.tar.gz
sh-3.2# cd php-5.3.15/ext/pcntl/
sh-3.2# phpize && ./configure && make install
sh-3.2# echo "extension=pcntl.so" >> /etc/php.ini
sh-3.2# apachectl restart

checking if everything is ok.

sh-3.2# php -m | grep pcntl
pcntl

testing pcntl with Facebook's PHP shell:
http://www.phpsh.org/
To Top