Re: Will not report errors what can I do
| From: | Robert Cummings | Date: | Fri, 05 Dec 2008 05:34:56 +0000 |
| Subject: | Re: Will not report errors what can I do | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-284140@lists.php.net to get a copy of this message | ||
On Thu, 2008-12-04 at 21:28 -0800, Jim Lucas wrote:
> Johny John wrote:
> > HI Terion,
> > Please put the error reporting on top of the page and try. If you have any
> > errors in the include file, it won't execute the rest of commands. Make the
> > changes to code as follows.
> >
> > <?php
> > error_reporting(E_ALL);
> > ini_set('display_errors', '1');
> > include("inc/dbconn_open.php");
> >
> > ?>
> >
> > Regards,
> >
> > Johny John
> >
>
> This still doesn't address his possible parse error problem. If he has
> a parse error, it makes no difference where he places the above lines.
> Nothing is going to work.
>
> It should be done via one of the three methods that mention in my other
> email.
It depends where the parse error exists. If it exists in
inc/dbconn_open.php then this will catche it since the error reporting
settings will take effect before the parse error causes a fatal during
the include.
Cheers,
Rob.
--
http://www.interjinn.com
Application and Templating Framework for PHP