Date: 08/15/00
- Next message: Remco Chang: "[PHP] bug? php4 with libmcrypt-2.2.7"
- Previous message: Tim West: "[PHP] Path of referring page"
- In reply to: Tim West: "[PHP] Path of referring page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
>
Hans Anderson ~ me <email protected>
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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Remco Chang: "[PHP] bug? php4 with libmcrypt-2.2.7"
- Previous message: Tim West: "[PHP] Path of referring page"
- In reply to: Tim West: "[PHP] Path of referring page"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

