I am happy to pay 4 your time, I am not a programmer but I need this fixed quick with php:
I need to capture a variable: $referrer
$referrer = domain.com
This little tracking code has to sit in <head> and it has to save in the variable what the domain of the referring URL is. Like: the hit came from http://www.domain1.com/index.php, then $referrer = domain1.com
Then I will call this variable in my gallery template to generate galleries for a site. The idea is that a relative path will be used to fetch different bits of data from other domains on the same server, like so:
<?php include ('../../../../$referrer/design_elements/background.jpg'); ?>
So basically the includes of that domain will be used that referred the hit. Keep in mind that this variable might change several times per second as its a busy site, thanks.
PM me with solution :-) Thanks :-)