RE: [PHP-DB] Simple Referrer

2003-08-27 Thread Jennifer Goodie
 Hi. This seems like it should be simple. I've had no problem doing this
 in other languages, but can find no reference to this function in the
 PHP manual.

 How can I get PHP to return the referring URL?


Depends on your PHP version and webserver install.  In most cases
$_SERVER['HTTP_REFERER'] works.
http://www.php.net/manual/en/reserved.variables.php#reserved.variables.serve
r

This isn't really database related.

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



Re: [PHP-DB] Simple Referrer

2003-08-27 Thread Matt Matijevich
$_SERVER[HTTP_REFERER]

http://www.php.net/manual/en/reserved.variables.php#reserved.variables.server

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



Re: [PHP-DB] Simple Referrer

2003-08-27 Thread Sebastian Haag
Diana,

Diana Cassady said:
 Hi. This seems like it should be simple. I've had no problem doing this
 in other languages, but can find no reference to this function in the
 PHP manual.

 How can I get PHP to return the referring URL?

 Thanks.

 Diana
 [EMAIL PROTECTED] Will Work for Chocolate
 http://www.vivaladata.com   (and its worth every byte!)

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



$_SERVER('HTTP_REFERER')

[from the php-online documentaion]
The address of the page (if any) which referred the user agent to the
current page. This is set by the user agent. Not all user agents will set
this, and some provide the ability to modify HTTP_REFERER as a feature. In
short, it cannot really be trusted.
[/end]

Is that what you are looking for?!

http://de3.php.net/reserved.variables

You have to check on your PHP-Version if it supports this type of global
variables.



-- 

Once a problem is defined - it is half way solved. (Henry Ford)

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



Re: [PHP-DB] Simple Referrer

2003-08-27 Thread jeffrey_n_Dyke

$_SERVER['HTTP_REFERER']

hth
jeff


   
 
  Diana Cassady
 
  [EMAIL PROTECTED]To:   [EMAIL PROTECTED]
   
  .comcc: 
 
   Subject:  [PHP-DB] Simple Referrer  
 
  08/27/2003 12:10 
 
  PM   
 
   
 
   
 




Hi. This seems like it should be simple. I've had no problem doing this
in other languages, but can find no reference to this function in the
PHP manual.

How can I get PHP to return the referring URL?

Thanks.

Diana
[EMAIL PROTECTED] Will Work for Chocolate
http://www.vivaladata.com   (and its worth every byte!)

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

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