[Project_owners] syntax error in php?

Eric Jung eric.jung at yahoo.com
Sat May 30 06:17:24 PDT 2009


Thanks for the reply , Dimitar. Here are my results:



> If it is runtime error you may include at the beginning of php script
> command to turn on error reporting and display errors like this:
> ini_set("display_errors", 1);
> error_reporting(E_ALL);
>

This didn't do anything on mozdev.


> Another combined scenario if you don't have php locally is to create new
> sample test script which turn on error reporting and include sript with
> problem.
> Something like this. Create new php file my-test.php with the following
> content:
> <?php
> ini_set("display_errors", 1);
> error_reporting(E_ALL);
> include("my-php-file.php");
>

This worked; i.e., it shows the parse error and line number. I wonder why it
works with an include but not otherwise?

Eric
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.mozdev.org/pipermail/project_owners/attachments/20090530/e39c6085/attachment.html>


More information about the Project_owners mailing list