I'm building a traffic trading script similar to various Circle Jerk Scripts, but instead of using perl and flat-files I'm using PHP and MySQL.
To track hits I want to find the domain name i.e. joeblow.com or hellokiddies.net. I've tried using
$sender=$SERVER_NAME;
But that seems to give my server name...
Any suggestions?