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:[email protected]
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
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners


_______________________________________________
Project_owners mailing list
[email protected]
https://www.mozdev.org/mailman/listinfo/project_owners

Reply via email to