Re: __FILE__ plus variables?

From: Date: Sat, 28 Jun 2003 12:29:19 +0000
Subject: Re: __FILE__ plus variables?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-153257@lists.php.net to get a copy of this message
Hello, This is a reply to an e-mail that you wrote on Sat, 28 Jun 2003 at 13:16, lines prefixed by '>' were originally written by you. > I have a password protected site. If you go to an inside page before > logging in, it redirects you to the log in page. I would like to grab > the URL that a user tries to access and send them back there after > they > log in. I'm using __FILE__ to get the file name (secondary.php for > example) but that doesn't return the variables > (secondary.php?cat_id=267). Is there a way for me to get the full URL > not just the filename? > Sam Using my Apache installation it is in $_SERVER['REQUEST_URI']. At a guess I would say most other web servers will put it there too. David. -- phpmachine :: The quick and easy to use service providing you with professionally developed PHP scripts :: http://www.phpmachine.com/ Professional Web Development by David Nicholson http://www.djnicholson.com/ QuizSender.com - How well do your friends actually know you? http://www.quizsender.com/ (developed entirely in PHP)

« previous php.general (#153257) next »