Extract Scheme and Host from HTTP_REFERER

后端 未结 4 1724
长情又很酷
长情又很酷 2020-12-11 19:30

I have $_SERVER[\'HTTP_REFERER\'] — pretend it is http://example.com/i/like/turtles.html. What would I need to do to get just the http://example.com

4条回答
提交回复
热议问题