告诉unix和windows分开 [英] telling unix and windows apart

查看:64
本文介绍了告诉unix和windows分开的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,

我想知道在php中是否有办法找出系统是否为windows

或基于unix的系统。我看到$ _ENV [WINDIR]设置在Windows但不是unix

但它似乎不起作用。


感谢您的帮助。


-

AKA Marketing.com - 网络营销(主要)
http://www.akamarketing.com/hosting
http://www.akamarketing.com/webmaster-forums

t:353 - 87- 9807628 ||| e:contactATakamarketing.com

Hi everyone,
I wonder is there a way in php for it to find out if the system is a windows
or unix based system. I read $_ENV[WINDIR] is set on windows but not unix
but it does not seem to work.

Thanks for your help.

--
AKA Marketing.com - Internet Marketing (mainly)
http://www.akamarketing.com/hosting
http://www.akamarketing.com/webmaster-forums
t : 353 - 87- 9807628 ||| e: contactATakamarketing.com

推荐答案

_ENV [WINDIR]在Windows上设置但不是unix

但它看起来不像工作。


感谢您的帮助。


-

AKA Marketing.com - 网络营销(主要是)
http://www.akamarketing.com/hosting
http://www.akamarketing.com/webmaster-forums

t:353 - 87- 9807628 ||| e:contactATakamarketing.com
_ENV[WINDIR] is set on windows but not unix
but it does not seem to work.

Thanks for your help.

--
AKA Marketing.com - Internet Marketing (mainly)
http://www.akamarketing.com/hosting
http://www.akamarketing.com/webmaster-forums
t : 353 - 87- 9807628 ||| e: contactATakamarketing.com


Dave写道:
大家好,
我想知道在php中是否有办法找到它如果系统是windows
或基于unix的系统。我读
Hi everyone,
I wonder is there a way in php for it to find out if the system is a windows
or unix based system. I read


_ENV [WINDIR]在Windows上设置但不是unix
但它似乎不起作用。
_ENV[WINDIR] is set on windows but not unix
but it does not seem to work.




您可以使用



You could use


这篇关于告诉unix和windows分开的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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