PHP常用

2017-07-20  本文已影响3人  Captain_tu
  1. 获取当前地址信息
    url => $_SERVER['SERVER_NAME']
    主机ip => $_SERVER['SERVER_ADDR']
    客户端ip => $_SERVER['REMOTE_ADDR']
    port => $_SERVER['SERVER_PORT']
    http/https => $_SERVER['REQUEST_SCHEME']
上一篇下一篇

猜你喜欢

热点阅读