PHP: Capture Referring URL And Truncate It To Domain Name

This is a quick technical post on how to use PHP to capture a referring URL and truncate it to a domain name. In other words, we want to determine the exact domain name from which our visitors arrived. The reasons for doing this are numerous. Many use this referring information for statistical analysis while others use it to perform … Read More