PHP常用

作者: Captain_tu | 来源:发表于2017-07-20 16:49 被阅读3次
  1. 获取当前地址信息
    url => $_SERVER['SERVER_NAME']
    主机ip => $_SERVER['SERVER_ADDR']
    客户端ip => $_SERVER['REMOTE_ADDR']
    port => $_SERVER['SERVER_PORT']
    http/https => $_SERVER['REQUEST_SCHEME']

相关文章

网友评论

      本文标题:PHP常用

      本文链接:https://www.haomeiwen.com/subject/trldkxtx.html