[PHP] Current URL, Last URL, error handeling

2002-04-04 Thread Ben Edwards

Is there a way I can get the whole URL of the current page for error 
handling/reporting.  Also is there a way of getting the previous/referrer 
URL for a similar purpose.

Lastly if anyone could point me in the direction on error handling 
strategy/techniques in general this would be good.

Regards,
Ben


* Ben Edwards  +44 (0)117 9400 636 *
* Critical Site Builderhttp://www.criticaldistribution.com *
* online collaborative web authoring content management system *
* i-Contact Progressive Video  http://www.videonetwork.org *
* Smashing the Corporate image   http://www.subvertise.org *
* Bristol Indymedia   http://bristol.indymedia.org *
* Bristol's radical news http://www.bristle.org.uk *
* PGP : F0CA 42B8 D56F 28AD 169B  49F3 3056 C6DB 8538 EEF8 *




-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


Re: [PHP] Current URL, Last URL, error handeling

2002-04-04 Thread Jason Wong

On Thursday 04 April 2002 21:56, Ben Edwards wrote:
 Is there a way I can get the whole URL of the current page for error
 handling/reporting.  Also is there a way of getting the previous/referrer
 URL for a similar purpose.

Have a look at the values inside $HTTP_SERVER_VARS:


print_r($HTTP_SERVER_VARS);



-- 
Jason Wong - Gremlins Associates - www.gremlins.com.hk

/*
Because he's a character who's looking for his own identity, [He-Man is] 
an interesting role for an actor.
-- Dolph Lundgren, actor
*/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php