php try catch wsod -
i have issue. when run:
try { $as ->setforename($_post['fname']) ->setsurname($_post['sname']) ->setemail($_post['email']) ->setuser($_post['user']) ->setpass($_post['pw']) ->setphone($_post['tel']) ->setmobile($_post['mob']) ->setjob($_post['job']) ->setauth($_post['auth']) ->addprocess(); } catch (exception $e) { echo $e; }
i "white screen of death" when use:
$as ->setforename($_post['fname']) ->setsurname($_post['sname']) ->setemail($_post['email']) ->setuser($_post['user']) ->setpass($_post['pw']) ->setphone($_post['tel']) ->setmobile($_post['mob']) ->setjob($_post['job']) ->setauth($_post['auth']) ->addprocess();
it works fine. confused please help, in advance.
the try-catch
block seems fine, try putting these lines on top of script see possible error:
ini_set('display_errors', true); error_reporting(e_all);
Comments
Post a Comment