Wrox Programmer Forums
Go Back   Wrox Programmer Forums > PHP/MySQL > Beginning PHP
|
Beginning PHP Beginning-level PHP discussions. More advanced coders should post to the Pro PHP forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning PHP section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old July 20th, 2003, 03:39 PM
Authorized User
 
Join Date: Jun 2003
Posts: 83
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via ICQ to natmaster Send a message via AIM to natmaster Send a message via MSN to natmaster
Default $_SERVER['HTTP_REFERRER']

i wrote a php counter script that records basic information about each person who visits my website. i tried recording $_SERVER['HTTP_REFERRER'] as part of the information thinking that $_SERVER['HTTP_REFERRER'] holds the information of the website that they clicked on the link of to get to my website; but every single time $_SERVER['HTTP_REFERRER'] is blank.... i even tested going to my website from a search engine but it was still blank. was i wrong in my thinking of what $_SERVER['HTTP_REFERRER'] does? if so, what does it do and how do i record the site the user came from? if not, then what am i doing wrong?

----------------------------
http://aeonofdarkness.com
__________________
----------------------------
Aeon of Darkness MUD - Free Online Roleplaying Game
http://aeonofdarkness.com
 
Old July 21st, 2003, 03:04 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 836
Thanks: 0
Thanked 0 Times in 0 Posts
Default

You misspelled the variable name. Use HTTP_REFERER
  http://www.php.net/reserved.variables

This still makes me laugh!
  http://dictionary.reference.com/search?q=referer&db=*


Take care,

Nik
http://www.bigaction.org/





Similar Threads
Thread Thread Starter Forum Replies Last Post
Ch_6 $_SERVER["REQUEST_URI'] causes error Nobska BOOK: Beginning PHP5, Apache, and MySQL Web Development ISBN: 978-0-7645-7966-0 1 January 26th, 2006 09:47 AM
error in <form action='{$_SERVER['PHP_SELF']} lanita PHP How-To 1 July 27th, 2004 01:07 AM
Request.ServerVariables HTTP_REFERRER question savoym Classic ASP Basics 6 May 25th, 2004 02:05 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.