gpt4 book ai didi

php - 如何在php中安装posix

转载 作者:IT王子 更新时间:2023-10-29 00:00:40 25 4
gpt4 key购买 nike

POSIX 在我运行 php -m cmd 时没有出现,但是,我从 phpinfo() –enable-posix=shared 在 Linux 上使用 Plesk 9。

基本上,我不能使用如下所述的 posix_*() 函数 http://www.php.net/manual/en/ref.posix.php

这个节目不存在:

if (function_exists('posix_getuid')) {
echo "posix_getuid available";
} else {
echo "posix_getuid not available"; // this prints in my server.
}

谁能告诉我如何安装它?谢谢。

[PHP Modules]bz2calendarctypecurldatedbasedomexiffileinfofilterftpgdgeoipgettextgmphashiconvimapionCube LoaderjsonlibxmlmbstringmcryptmemcachemhashmysqlmysqliopensslpcntlpcrePDOpdo_mysqlpdo_sqlitereadlineReflectionsessionshmopSimpleXMLsocketsSPLsqlitestandardtokenizerwddxxmlxmlreaderxmlwriterxslzipzlib

最佳答案

我找到了解决办法:

yum install php-process

这个包启用了 php-posix。

关于php - 如何在php中安装posix,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2197366/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com