for using the subdomain in codeigniter
$subdomain_arr
=
explode
(
'.'
,
$_SERVER
[
'HTTP_HOST'
], 2);
//creates the various parts
$subdomain_name
=
$subdomain_arr
[0];
//assigns the first part
echo
$subdomain_name
;
$subdomain_arr
=
explode
(
'.'
,
$_SERVER
[
'HTTP_HOST'
], 2);
//creates the various parts
$subdomain_name
=
$subdomain_arr
[0];
//assigns the first part
echo
$subdomain_name
;
Comments
Post a Comment