Love Fuel?    Donate

FuelPHP Forums

Ask your question about FuelPHP in the appropriate forum, or help others by answering their questions.
not getting query strings from URL
  • hello I have this problem. I don't get query string data from the URL on the server version of my website: if I var_dump $_GET
    this is what I get on my localhost and online for xxx.net/cart?q=hola > online, environment: production: array(1) { ["/cart"]=> string(0) "" } localhost MAMP, environment: development: array(1) { ["q"]=> string(4) "hola" } any ideas? thanks a lot!
  • Which leads to the question: what is your production environment? And which version of Fuel do you use?
  • Harro Verton wrote on Thursday 6th of October 2011:
    Which leads to the question: what is your production environment? And which version of Fuel do you use?

    thanks for your reply. I'm using fuel 1.0.1, and
    webhosting I use is from hostpoint.ch, running "Apache/2.2.17 (FreeBSD) mod_hcgi/0.9.2 mod_ssl/2.2.17 OpenSSL/1.0.0c DAV/2"
    (I got that from phpinfo()) is that what you meant? thanks again
  • Looks like some cgi implementation. Always good for some fun. Can you do me a favor, and do
    echo serialize($_SERVER);die();
    

    in your controller, and email the result to me ( wanwizard <at> fuelphp.com )? Then I can have a look later tonight.
  • Harro Verton wrote on Thursday 6th of October 2011:
    Looks like some cgi implementation. Always good for some fun. Can you do me a favor, and do
    echo serialize($_SERVER);die();
    

    in your controller, and email the result to me ( wanwizard <at> fuelphp.com )? Then I can have a look later tonight.

    I just sent it, let me know if you don't get it
  • Got it. Are you doing any form of rewriting? Possibly to "index.php?", so that the redirected URL looks like [url=http://sitename/index.php?/test?q=hola]http://sitename/index.php?/test?q=hola[/url] ? That would explain why your $_SERVER dump query string contains "/test" instead of "q=hola".

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

In this Discussion