3

how do I know on which platform is running my server: Unix or Windows server ? I have only access to ftp, is there any php code to know it ?

thanks

aneuryzm
  • 63,052
  • 100
  • 273
  • 488

2 Answers2

5

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

Pratik Deoghare
  • 35,497
  • 30
  • 100
  • 146
1

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

Ignacio Vazquez-Abrams
  • 776,304
  • 153
  • 1,341
  • 1,358