Jump to content

[SOLVED] Predefined Variables Question?


Recommended Posts

Which predefined variables is it that will let me just echo the domain of the person who is visiting referred from? I know I can do this: $_SERVER['HTTP_REFERER']; but that will display the full address path. I want to only be able to see this:  www.domain.com. I used to know how to do this; but I have forgotten how. Any body remember which predefined variable this is?

Link to comment
https://forums.phpfreaks.com/topic/50200-solved-predefined-variables-question/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.