开发者

how do I know if it is Windows server or unix?

开发者 https://www.devze.com 2022-12-21 21:53 出处:网络
how do I know on which platform is running my server: Unix or Windo开发者_StackOverflow社区ws server ?

how do I know on which platform is running my server: Unix or Windo开发者_StackOverflow社区ws server ? I have only access to ftp, is there any php code to know it ?

thanks


You have ftp access means you have the IP Address.

You would love to use NMAP.

Example OS detection.

PHP CODE

echo PHP_OS;

Try above code here.

Source: Predefined Constants


ftp_systype() might be able to tell you to some (unknown) degree of accuracy.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号