[PHP] HTTP_REFERER

2002-03-25 Thread tom hilton

Hi, I am using the $HTTP_REFERER variable to ensure that users of a website
are getting to a certain page through a link from the index.html page, and
not going straight to the page through a bookmark.

$page=$HTTP_REFERER;
if ($page!=http://www.somedomain.com/index.html;)
  {
  echo h3Please log in through the home page/h3br;
  echo META HTTP-EQUIV='Refresh'
CONTENT='1;URL=http://www.somedomain.com/index.html';
  }
 This is working fine for most users, but one user is telling me that even
though she is following the link from the index page, she's still getting
the error message,  and are being bounced back to the index page.  She is
using Internet Explorer 6.0.  Are there any security or privacy settings
that might restrict use of the $HTTP_REFERER variable?  Or is there a better
way to make sure users follow links to pages, rather than bookmarking and
going straight to a page?  Thanks for any help you can give me.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] banner ads

2002-03-13 Thread tom hilton

Hi, does anyone know of a simple banner ad rotation script that can rotate
animated gifs.



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php




[PHP] http_referer

2002-02-18 Thread tom hilton

Hi,

I am trying to pull http_referer info on users accessing a certain page, but
am not having any luck. When I run phpinfo(), the referer information is
listed with all the other server variables, but when I pull a list of the
server variables as an array and print them, they all appear except for the
http_referer variable.  Does anyone have any idea of why this one variable
might not be available as part of the server array, put is accessible by
phpinfo()?



-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php