Hi Chris ,

I genuinely believe that I have a misunderstanding of what the HTTP_REFERER is all about. I was trying to grab the address just before the user entered "my" application.

In my INDEX.PHP, I used an extra script named LOGIN.PHP, where the HTTP_REFERER was captured. Then in turn LOGIN.PHP called another script named LOGON.PHP which picked up the HTTP_REFERER information. which in my case is the url name of my INDEX.PHP, Which of course pointed the way into the application in the first place.

Within the application HTTP_REFERER works just fine. I can see its potential and some importance possible uses within applications.

I am guessing the way around my problem is to forget the use of HTTP_REFERER and just put the user back to the login page and let the user press the back button to let themselves out, or is there a more elegant way to do what I want??

Cheers - Paul

----- Original Message ----- From: "csnyder" <[EMAIL PROTECTED]>
To: "NYPHP Talk" <talk@lists.nyphp.org>
Sent: Wednesday, July 09, 2008 8:01 PM
Subject: Re: [nyphp-talk] Returning users from whiniest they came


On Wed, Jul 9, 2008 at 2:39 PM, PaulCheung <[EMAIL PROTECTED]>
wrote:
I have tried running the HTTP_REFERER using the one liner below and
nothing
happens

<?php
  echo $_SERVER['HTTP_REFERER'];
?>

I cannot see why it should not work on my hosted Linux website, as it
works
on this site

http://unix.cms.gre.ac.uk/code/php/examples/http_referer.php

Paul


You are using a link on another page to get to your referer test, right?

Try print_r( $_SERVER ) to see if the $_SERVER superglobal is being
set in the first place.
_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

_______________________________________________
New York PHP Community Talk Mailing List
http://lists.nyphp.org/mailman/listinfo/talk

NYPHPCon 2006 Presentations Online
http://www.nyphpcon.com

Show Your Participation in New York PHP
http://www.nyphp.org/show_participation.php

Reply via email to