Return to Snippet

Revision: 37903
at December 20, 2010 07:19 by thisisjamessmith


Initial Code
$domainChunks = explode('.', $_SERVER['SERVER_NAME']);
$subDomain = $domainChunks[0];
$global_vars['client'] = $subDomain;

Initial URL

                                

Initial Description

                                

Initial Title
Set subdomain as an ExpressionEngine global variable

Initial Tags

                                

Initial Language
PHP