Welcome Guest, Not a member yet? Register   Sign In
Does CI turn off the $_SERVER variable?
#1

[eluser]IanMcQ[/eluser]
Hi,

I'm trying to use a co-op ad network and they require me to put a script on my server to help my server communicate with their ad network. Naturally in that script, the $_SERVER variable is used a lot. But what's weird is I'm getting errors saying that $_SERVER['PATH_INFO'] is an "undefined index." Does CI in any way manipulate the $_SERVER variable, read it, and put it somewhere else, then destroy $_SERVER? If not... this is really weird because PATH_INFO is clearly a part of the $_SERVER array.

Any ideas? If not, I'll need to get in touch with the ad network to help fix this.

Ian
#2

[eluser]Pascal Kriete[/eluser]
It should not affect them. It's very likely that this is a server issue. If you're using apache try adding AcceptPathInfo=On to your httpd.conf .
#3

[eluser]evanwalsh[/eluser]
Use the $this->input->server() function instead
#4

[eluser]Seppo[/eluser]
Why don't you create a new file, outside CI, to print_r your $_SERVER array? that's the best way to find out is it's a CI thing - but I think CI does not affect the value.




Theme © iAndrew 2016 - Forum software by © MyBB