• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
include "" vs $this->load->library()

#10
[eluser]Dave Stewart[/eluser]
[quote author="xwero" date="1214417211"]If you are talking about developer and live server...[/quote]

Yup - that's what I'm talking about. For me there's usually 3 servers:

- development server (localhost)
- staging sever
- live server

So a switch/case or an associative array usually works best.

Also, apart from the base_url there's also the application paths to consider (if they have to be absolute as you said)

Case closed Smile

By the way, what did you mean by $_SERVER vars (in this case $_SERVER['HTTP_HOST']) can be manipulated? By whom, and to what end?
Cheers,
Dave


Messages In This Thread
include "" vs $this->load->library() - by El Forum - 06-25-2008, 04:04 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 04:26 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 04:34 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 05:09 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 06:05 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 06:15 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 06:51 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 07:01 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 07:06 AM
include "" vs $this->load->library() - by El Forum - 06-25-2008, 07:23 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.