作者热门文章
- r - 以节省内存的方式增长 data.frame
- ruby-on-rails - ruby/ruby on rails 内存泄漏检测
- android - 无法解析导入android.support.v7.app
- UNIX 域套接字与共享内存(映射文件)
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/
我是一名优秀的程序员,十分优秀!