PHP - If domain

Viewed 11878

I have the following piece of coding on a multi-domain 1 template setup:

<?php  $host = parse_url($domain, PHP_URL_HOST);
if($host == 'www.justdoors.co') {
echo "action goes here";
} ?>

For some reason it's not carrying out the action when I'm on the www.justdoors.co domain, what am I missing?

3 Answers
Related