- 论坛徽章:
- 1
|
php如何模拟多线程技术
没事搞搞别的吧。我看这个没多大意义。
以下是转自phpe.net上的一段对白:
barder:
服务器Linux+APACHE1.3.29+PHP4.3.5+MySQL3.23.56
我看www.php.net上说,要--enable-sockets --enable-sigchild --enable-pcntl
同时还要把php配置为apache的CGI模式,才能实现这种功能,是这样吗?
但是我尝试把php配置为apache的CGI模式,却不能成功
我的思路是不是错误了啊??
binzy
Process Control support in PHP implements the Unix style of process creation, program execution, signal handling and process termination. Process Control should not be enabled within a webserver environment and unexpected results may happen if any Process Control functions are used within a webserver environment. 进程控制不应当在一个WebServer环境中被起用. 并且如果在WebServer环境中使用任何进程控制函数都可能引发不可预期的结果. |
|