Posted by Michael Fesser on 07/10/07 16:19
..oO(laredotornado@zipmail.com)
>I'm using PHP 4.4.4. What is the best way (I assume regular
>expressions would be involved) to get the domain from the
>$_SERVER['HTTP_REFERER'] variable?
parse_url()
http://www.php.net/parse_url
Be aware that using the HTTP referrer is unreliable. Whatever you want
to do with it -- always take into account that it might be faked or
empty.
Micha
Navigation:
[Reply to this message]
|