WAMP和pcntl_fork [英] WAMP and pcntl_fork
本文介绍了WAMP和pcntl_fork的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
有没有一种方法可以使pcntl_fork在WAMP中工作?我需要开发一个分叉解决方案并在本地进行测试.
Is there a way to make pcntl_fork work in WAMP? I need to develop a forking solution and test it locally.
推荐答案
否,这是不可能的. PCNTL 扩展名需要* nix平台.
No, it's not possible. The PCNTL extension requires *nix platforms.
现在,话虽这么说,您想做什么,而且您可以不用分叉就解决它吗??
Now, with that said, what are you trying to do, and can you solve it without forking...?
编辑:启动后台进程的一些替代方法:
Some alternatives to launching background processes:
-
Unix/Linux:
Unix/Linux:
exec('nohup php yourscript.php > /dev/null 2>&1 &');
Windows;
Windows;
$com = new Com('WScript.shell');
$com->run('php yourscript.php', 10, false);
有关自变量的文档,请参见: http ://msdn.microsoft.com/zh-CN/library/d5fk67ky(v = vs.85).aspx
For documentation on the arguments, see: http://msdn.microsoft.com/en-us/library/d5fk67ky(v=vs.85).aspx
这篇关于WAMP和pcntl_fork的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文