简体   繁体   English

我怎么知道它是Windows服务器还是unix?

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

how do I know on which platform is running my server: Unix or Windows server ? 我如何知道运行我的服务器的平台:Unix还是Windows服务器? I have only access to ftp, is there any php code to know it ? 我只能访问ftp,是否有任何PHP代码知道它?

thanks 谢谢

You have ftp access means you have the IP Address. 您有ftp访问权限意味着您拥有IP地址。

You would love to use NMAP . 你会喜欢使用NMAP

Example OS detection . 示例OS检测

PHP CODE PHP代码

 echo PHP_OS; 

Try above code here . 在这里尝试以上代码。

Source: Predefined Constants 来源: 预定义常量

ftp_systype()可能会告诉您一些(未知)准确度。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 SFTP:如何知道我是否连接到unix或windows主机? - SFTP: how to know if i'm connecting to a unix or windows host? 如何从Windows在Unix服务器上启动服务 - How I can start a service on my Unix server from windows 你知道 Windows 上有一个类似的 watch 程序(unix watch 命令)吗? - Do you know a similar program for watch (unix watch command) on Windows? 如何将我的代码从emacs获取到unix服务器? - How do I get my code from emacs into the unix server? 如何在Windows Eclipse中进行Unix导出 - How to do unix export in windows eclipse 我如何使Windows Server 2003从UNIX-AIX中看到某些目录? - how i can make windows server 2003 see some directory from UNIX-AIX? 如何通过 SCP 命令将文件从使用 Putty 连接的 Unix 机器传输到 Windows PC? - How do I transfer files from Unix machine connected using Putty to windows PC through SCP command? 如何在Windows PC上使用python脚本在Unix上截屏? - How do I take screenshot on Unix using python script on windows PC? 如何在Windows上交叉编译C代码,以便在Unix(Solaris / HPUX / Linux)上运行二进制文件? - How do I cross-compile C code on Windows for a binary to also be run on Unix (Solaris/HPUX/Linux)? 如何使Windows文件锁定更像UNIX文件锁定? - How do I make Windows file-locking more like UNIX file-locking?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM