您现在的位置是:PHP获取当前页面url
PHP获取当前页面url
public static function getCurrentPageUrl() { $protocol = (!empty($_SERVER['HTTPS']) && $_SERVER['HTTPS'] !== 'off' || $_SERVER['SERVER_PORT'] == 443) ? "https://" : "http://"; $page_url = $protocol.$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; return $page_url; }
随便看看
- CentOS7关闭firewalld安装iptables
- curl封装函数
- CentOS替换阿里云yum源
- linux端口重定向
- Linux挂载Windows系统NTFS文件格式硬盘
- libSDL-1.2.so.0()(64bit) is needed by VirtualBox
- 运行 gnome-screenshot时发生错误
- Linux下Netabeans字体锯齿
- Inconsolata字体下载
- 帝国CMS修改https后台登录空白
- Centos设置桌面或命令行启动
- win7和CentOS双系统设置默认启动
- iptables: No config file.
- CentOS安装和配置rsync
- PHP解决ajax跨域header头设置
站长简介
分类
最新文章
热门文章
- 微信支付退款结果通知解密
- Linux修改密码提示passwd /usr/share/cracklib/pw_dict: error reading header
- 到ICANN投诉三五互联获取域名转移密码成功
- {"errcode":45047,"errmsg":"out of response count limit hint]"}
- 微信html弹出点击右上角分享到朋友圈
- CentOS使用chkconfig提示systemctl enable xxxx.service
- PHP将B转换为KB、MB、GB
- Apache禁用TRACE Method和添加X-frame-options响应头
- mysqld_safe Number of processes running now
- 构建微信公众号被动回复image图片消息xml