How to identify server IP address in PHP

后端 未结 15 942
温柔的废话
温柔的废话 2020-11-29 23:52

How can I identify the server IP address in PHP?

15条回答
  •  情深已故
    2020-11-30 00:02

    You may have to use $HTTP_SERVER_VARS['server_ADDR'] if you are not getting anything from above answers and if you are using older version of PHP

提交回复
热议问题