How do I get the local IP address of the server using PHP?

后端 未结 7 1091
不思量自难忘°
不思量自难忘° 2020-12-31 14:21

I am developing a PHP application that will be run only on the local network of a business. The application will be installed to the server using a custom installer like thi

7条回答
  •  误落风尘
    2020-12-31 15:15

    You can see all the available information with the command:

    print_r($_SERVER, 1);
    

提交回复
热议问题