Welcome! Log In Create A New Profile

Advanced

Problem with $_SERVER['REQUEST_URI'];

June 05, 2011 04:22PM
In my nginx server, $_SERVER['REQUEST_URI']; does not work, and returns nothing. When using getenv("REQUEST_URI"); it will returns the url of the current page instead of the reffering url. And in this case, it will return the current filename (e.g. /test.php) not the full url. I have tested this on apache, and there is no problem; thus it is something related to nginx setting. Any idea?
Subject Author Posted

Problem with $_SERVER['REQUEST_URI'];

etrader June 05, 2011 04:22PM

Re: Problem with $_SERVER['REQUEST_URI'];

Maxim Dounin June 05, 2011 05:30PM

Re: Problem with $_SERVER['REQUEST_URI'];

etrader June 05, 2011 06:45PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

Guests: 318
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready