RE: [PHP] Getting the URL that triggered a 404.
| From: | Henning Sittler | Date: | Thu, 11 Jul 2002 16:02:04 +0000 |
| Subject: | RE: [PHP] Getting the URL that triggered a 404. | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-107165@lists.php.net to get a copy of this message | ||
The $_SERVER environment variables should be there, I'm using them.
Henning Sittler
www.inscriber.com
-----Original Message-----
From: Brian McGarvie [mailto:bmcgarvie@lennox-mckinlay.co.uk]
Sent: Thursday, July 11, 2002 12:00 PM
To: Robert Cummings; php-general@lists.php.net
Subject: RE: [PHP] Getting the URL that triggered a 404.
you can get the webserver to redirect to a custom errorhandler that could be
a php script to do whatever you want.
> -----Original Message-----
> From: Robert Cummings [mailto:robert.cummings@webmotion.com]
> Sent: 11 July 2002 4:44 PM
> To: php-general@lists.php.net
> Subject: [PHP] Getting the URL that triggered a 404.
>
>
>
> When the 404 is caught and a PHP script is executed there doesn't
> appear to be any information in the environment variables indicating
> what URL triggered the 404. Could someone tell me how to obtain that
> information?
>
> Cheers,
> Rob.
> --
> .-----------------.
> | Robert Cummings |
> :-----------------`----------------------------.
> | Webdeployer - Chief PHP and Java Programmer |
> :----------------------------------------------:
> | Mail : mailto:robert.cummings@webmotion.com |
> | Phone : (613) 731-4046 x.109 |
> :----------------------------------------------:
> | Website : http://www.webmotion.com |
> | Fax : (613) 260-9545 |
> `----------------------------------------------'
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php