无法在php中使用posix_kill [英] Trouble using posix_kill in php

查看:87
本文介绍了无法在php中使用posix_kill的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用php 5.5.11,当我尝试调用posix_kill时,出现以下错误:
Fatal error: Call to undefined function posix_kill() in /var/www/.../someScript.php on line 861

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.

这篇关于无法在php中使用posix_kill的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆