[PHP] http referrer
I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents are privileged, confidential and subject to copyright. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorized use or disclosure of the information herein is prohibited.
Re: [PHP] http referrer
On Thu, 2004-04-08 at 12:22, Chris Bruce wrote: I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? HTTP_REFERER. Someone spelled it wrong a long time ago and it stuck :) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `' -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http referrer
Chris Bruce wrote: I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? Thanks. $_SERVER['HTTP_REFERER'] -- *** * _ __ __ __ _ * John Nichel * * | |/ /___ __ \ \/ /__ _ _| |__ ___ __ ___ _ __ * 716.856.9675 * * | ' / -_) _` \ \/\/ / _ \ '_| / /(_-_/ _/ _ \ ' \ * 737 Main St. * * |_|\_\___\__, |\_/\_/\___/_| |_\_\/__(_)__\___/_|_|_|* Suite #150 * * |___/ * Buffalo, NY * * http://www.KegWorks.com[EMAIL PROTECTED] * 14203 - 1321 * *** -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http referrer
Damn! It can't be that easy ;) But, yes, it works. Thanks a bunch. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents are privileged, confidential and subject to copyright. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorized use or disclosure of the information herein is prohibited. On Apr 8, 2004, at 12:25 PM, Robert Cummings wrote: On Thu, 2004-04-08 at 12:22, Chris Bruce wrote: I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? HTTP_REFERER. Someone spelled it wrong a long time ago and it stuck :) Cheers, Rob. -- .. | InterJinn Application Framework - http://www.interjinn.com | :: | An application and templating framework for PHP. Boasting | | a powerful, scalable system for accessing system services | | such as forms, properties, sessions, and caches. InterJinn | | also provides an extremely flexible architecture for | | creating re-usable components quickly and easily. | `'
Re: [PHP] http referrer
From: Chris Bruce [EMAIL PROTECTED] I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? $_SERVER['HTTP_REFERER'] print_r($_SERVER) will tell you for sure. ---John Holmes... -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php
Re: [PHP] http referrer
$HTTP_REFERER Although not all browsers send it properly (if at all). Don't rely on it. Matt On Thu, 2004-04-08 at 12:22, Chris Bruce wrote: I apologize for my ignorance, but I am trying to find a way to grab the referring url. I can't seem to find the environment variable to do this. Does anyone know how to grab this? Thanks. -- Chris Bruce [EMAIL PROTECTED] Idextrus E-Business Architects http://www.idextrus.com 3282 Wilmar Cres. Mississauga, ON L5L4B2 CA 905.828.9189 This e-mail and its contents are privileged, confidential and subject to copyright. If you are not the intended recipient, please delete this e-mail immediately. Any unauthorized use or disclosure of the information herein is prohibited.