Welcome Guest, Not a member yet? Register   Sign In
Why be throwing around $this->config->item('base_url') ? Why not stick with $_SERVER('HTTP_HOST')?
#3

[eluser]rogierb[/eluser]
What if you installed in a subdomain or in a seperate folder?
What if HTTP_HOST is empty?

HTTP_HOST will give you the host, but only the host.
base_url() accounts for installation in subdomains or folders under the root.

Then again I use it in my base_url :-)


Messages In This Thread
Why be throwing around $this->config->item('base_url') ? Why not stick with $_SERVER('HTTP_HOST')? - by El Forum - 12-21-2009, 09:23 AM



Theme © iAndrew 2016 - Forum software by © MyBB