Posted By

thisisjamessmith on 12/20/10


Tagged


Versions (?)

Set subdomain as an ExpressionEngine global variable


 / Published in: PHP
 

  1. $domainChunks = explode('.', $_SERVER['SERVER_NAME']);
  2. $subDomain = $domainChunks[0];
  3. $global_vars['client'] = $subDomain;

Report this snippet  

You need to login to post a comment.