Is this a bug , or just happens on my server? - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Is this a bug , or just happens on my server? (/showthread.php?tid=21501) |
Is this a bug , or just happens on my server? - El Forum - 08-11-2009 [eluser]Twisted1919[/eluser] Hi , few moments ago i tried to save the session in database , but had some troubles with ip_address() function . I am running lighttpd , and the ouput of the $_SERVER looks like : Code: Array For the moment i found a workaround to this by str_replace-ing the $_SERVER['REMOTE_ADDR'] from the ip_address() method but i would like to know if this is a bug of CI or just happens with lighttpd ? Ah , of course , and the real solution to this P.S: CI from SVN at date . Thx . Is this a bug , or just happens on my server? - El Forum - 08-11-2009 [eluser]jedd[/eluser] Ahh, the thrill of IPv6. What does [url="http://ellislab.com/codeigniter/user-guide/libraries/input.html"]$this->input->ip_address()[/url] actually give you? EDIT: {facepalm} Sorry - just re-read your message - it returns FALSE. Okay .. I've seen something like this before, in my pre-CI days, and there was another server variable that you could call on - I'll have a dig around and see if I can find it, but I seem to recall it was something that was being deprecated even back then, perhaps as long ago as PHP4. Is this a bug , or just happens on my server? - El Forum - 08-11-2009 [eluser]Twisted1919[/eluser] Now , with that little hack gives my real ip , but without gives : 0.0.0.0 . Edit : well i don't know what is causing this . Maybe php 5.3.0 (that version i'm running)? |