[Project_owners] syntax error in php?
Dimitar Angelov
mitko at edabg.com
Thu May 28 23:21:01 PDT 2009
Hi Eric!
If this is syntax error if you have php locally you may check file for
syntax errors with the following command:
php -l my-php-file.php
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);
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");
?>
Regards,
Dimitar Angelov
EDA Ltd.
mailto:mitko at edabg.com
http://www.edabg.com
Eric Jung wrote:
> Hi,
> I guess I have a syntax error in a PHP script, but mozdev just shows a
> blank/empty page. How can I find out where the error is -- line number
> or something else?
>
> Thanks,
> Eric
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Project_owners mailing list
> Project_owners at mozdev.org
> https://www.mozdev.org/mailman/listinfo/project_owners
More information about the Project_owners
mailing list