在 php 中使用 posix_kill 的问题
我正在使用 php 5.5.11
,当我尝试调用 posix_kill
时,出现以下错误:致命错误:在第 861 行调用/var/www/.../someScript.php 中未定义的函数 posix_kill()
I'm using php 5.5.11
and when I try to call posix_kill
I get the following error:
Fatal error: Call to undefined function posix_kill() in /var/www/.../someScript.php on line 861
我不确定还有哪些相关信息,请随时询问.
I'm not sure what more information is relevant, feel free to ask.
推荐答案
您需要安装 PHP 的 posix
扩展来实现该功能.如果没有那个扩展,函数就没有定义,这会导致错误.
You need to install PHP's posix
extension which implements that function. Without that extension the function simply is not defined, which leads to the error.
如何安装这样的扩展包取决于您的操作系统.最简单的是在 Linux 中,您可以在软件管理系统中单击一下,即可搜索、识别、下载和安装软件包.
How to install such an extension package depends on your operating system. Easiest is in Linux where you can search, identify, download and install packages with a single click inside the software management system.
相关文章