EDIT I changed it to.. But it is still processing between the {} tags regardless of what directory it is. I changed it to 43523 and it still outputs information.... Any ideas? ======================================================== I think I'm probably going about this the wrong way but basically, I'm making a template system for a series of websites that will sit in directories on the domain e.g. domain.com/site1/ domain.com/site2/ I'm only using includes to include template files and using the URL to relate the files: // Get url $url="http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']; // Relate url to website if ($url = "http://www.domain.com/site1/index.php"){ $siteid = "4"; $sitename = "Foo"; $logo = "logo.png"; } PHP: I got this far and everything works perfectly, it pulls from the db etc on the homepage but I just realised that as soon as I add another page, it won't work. Is there a way to get the directory from the URL and relate the siteid to the /site1/ directory?
I think you mean == instead of =, please see => http://php.net/manual/en/language.operators.comparison.php