55问答网
所有问题
posix_getpid这个PHP函数为什么在WINDOWS下不能运行,只有在LINUX下才能用吗?
如题所述
举报该问题
推荐答案 2010-12-01
你好。
posix_getpid 是linux下的函数,在windows是没有的(not implemented),在windows下可以使用get_current_user()。
另外可以使用function_exists('posix_getpwuid')方法来判别是否支持这个函数。
参考资料:
http://php.net/manual/en/function.posix-getpwuid.php
温馨提示:答案为网友推荐,仅供参考
当前网址:
http://55.wendadaohang.com/zd/F4IRLIeRR.html
相似回答
大家正在搜
相关问题
PHP的posix_getpid()扩展怎么安装,windo...
linux内核中有getpid这个函数吗
POSIX AIO和libaio的Linux上的区别
Linux支持POSIX吗????
windows 操作系统下写的php可以在linux服务器上...
php 中getmypid()函数被禁用,有其他替换函数吗?
PHP网站在windows下测试正常,但是在Linux下不能...
如何在windows上运行使用linux下面的命令