NYCPHP Meetup

NYPHP.org

[nycphp-talk] Returning users from whiniest they came

PaulCheung paulcheung at tiscali.co.uk
Wed Jul 9 14:39:08 EDT 2008


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
----- Original Message ----- 
  From: csnyder 
  To: NYPHP Talk 
  Sent: Wednesday, July 09, 2008 3:51 PM
  Subject: Re: [nycphp-talk] Returning users from whiniest they came


  On Wed, Jul 9, 2008 at 9:45 AM, Patrick May <patrick at hexane.org> wrote:

    HTTP_REFERER is pretty common, I think you can count on it 9 times out of 10.

    ~ p

  Or even 999 times out of 1000. Opera lets you turn it off, I believe, but all other modern (since 2001?) browsers send it.

  You still need to account for the case where someone has no HTTP_REFERER upon first hitting your site--maybe they typed the address into the browser bar, it happens! ;-)






------------------------------------------------------------------------------


  _______________________________________________
  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
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.nyphp.org/pipermail/talk/attachments/20080709/d432570c/attachment.html>


More information about the talk mailing list