Re: Re: PHP5 || Catch Error & Send POST Vars...

From: Date: Fri, 06 Oct 2006 15:52:42 +0000
Subject: Re: Re: PHP5 || Catch Error & Send POST Vars...
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-242755@lists.php.net to get a copy of this message
On Thu, October 5, 2006 4:43 pm, sit1way wrote: > I'd like to catch errors and send POST vars to my error display page. > > So: > > try { > $r = new query($sql); > > if(!$r) { > throw new Exception($err); > } > } > catch (Exception $e) { > $this->err_msg = $e->getMessage(); > > /* somehow kick user to error display screen with POST vars */ require 'error_screen'; exit; > ????? > } Why would you chew up HTTP connections and bounce traffic back-and-forth to just read a file off your own server's hard drive? I never have understood that... -- Some people have a "gift" link here. Know what I want? I want you to buy a CD from some starving artist. http://cdbaby.com/browse/from/lynch Yeah, I get a buck. So?

« previous php.general (#242755) next »