Welcome Guest, Not a member yet? Register   Sign In
Using codeigniter in QUERY_STRING mode with php fast CGI
#8

(03-20-2015, 09:29 AM)RogerMore Wrote: ok, a print_r() of $_GET will give you an empty array because CI stores the data from $_GET elsewhere and empties $_GET as explained.

But you should be able to fetch de GET items using $this-input->get('var name');

I tested this just now with this simple function:

Code:
   function getitnow() {

       echo $this->input->get('data');

   }

and when using the url


Code:
mydomain.com/test/getitnow?data=hello%20world

CI echoed 'Hello world' as a result

I use CI since 3 years and I know that but try to use CI with $config['uri_protocol'] = 'QUERY_STRING'; with my htaccess on a php fastcgi hosting, It doesn't work... Sad
Reply


Messages In This Thread
RE: Using codeigniter in QUERY_STRING mode with php fast CGI - by peter - 03-20-2015, 11:55 AM



Theme © iAndrew 2016 - Forum software by © MyBB