I have a series of domain names and pages that all use stylesheets with the same elements but different variables for each element depending on the domain name and page. I’m planning on storing all of the variables associated with each domain name into a database.
The HTML web page at each domain name will include:The page that contains the stylesheet code above must be an HTML page and not a PHP page due to the restrictions of the web server. I know how to do all of that.
I need the domain name associated each page (and preferable the entire URL) that calls styles.php to be passed to styles.php as a variable so I can get the proper database variables.
I had hoped that by placing this on the common PHP stylesheet page that I’d know which page called that stylesheet:
$referer = $_SERVER[‘HTTP_REFERER’];
However, apparently the web pages that calls the PHP page for the stylesheet isn’t set with $_SERVER[‘HTTP_REFERER’]. Any suggestion on how to tell what page is calling the PHP stylesheet so that I can pull the variables would be greatly appreciated.