在 php 中使用 posix_kill 的问题 [英] Trouble using posix_kill in php

查看:17
本文介绍了在 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.

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

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