Re: Path of referring page
| From: | Hans H. Anderson | Date: | Tue, 15 Aug 2000 15:57:55 +0000 |
| Subject: | Re: Path of referring page | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-11839@lists.php.net to get a copy of this message | ||
Tim,
Referer is usually fully qualified, like http://www.somewhere.com/, but
you can use the parse_url() function to get the path from it.
The referer is stored in $HTTP_REFERER
Hans
On Tue, 15 Aug 2000, Tim West wrote:
> Hi,
>
> Is it possible to find the path of a referring page in php? For example, say
> I have a php script at http://www.somewhere.com/file.html and
> it points to
> http://www.somewhere.com/scripts/something.php can the
> something.php script
> find that it was called from http://www.somewhere.com/file.html
> or
> /file.html, or even better ../file.html?
>
> Cheers,
>
> Tim
>
> --
> Digital Media Developer
> The Display Post - www.displaypost.co.uk
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net
>
>
>
Hans Anderson ~ me@hansanderson.com
PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL
(800)397-9116 / (406)549-6524 | Databases, Flash Multimedia,
http://www.hansanderson.com | Killer Audio Production,
http://www.goofiness.com | Minty Fresh Breath.