I have set error_reporting to E_ALL in my php.ini. But with this solution I
can only see errors when I request pages which have errors.

-----Original Message-----
From: John Ellingsworth [mailto:[EMAIL PROTECTED]
Sent: Tuesday, July 15, 2003 9:31 AM
To: Thai Thanh Ha; [EMAIL PROTECTED]
Subject: RE: [PHP-WIN] How to detect syntax errors before releasing a
PHP application?


I place this in a file that is required for every page so that I see all
errors:

// we want to see all errors
error_reporting(E_ALL);

Thanks,

John Ellingsworth

-----Original Message-----
From: Thai Thanh Ha [mailto:[EMAIL PROTECTED]
Sent: Monday, July 14, 2003 10:27 PM
To: [EMAIL PROTECTED]
Subject: [PHP-WIN] How to detect syntax errors before releasing a PHP
application?



 Hi all,

 When I write Java-based applications, I can compile JSP pages to detects
syntax errors before releasing the applications. I'm wondering if there is
some tool like that in PHP writing? Of course PHP pages cannot be compiled
like JSP pages because PHP is an interpreted language. But it would be great
to have some tool to check PHP syntax of an PHP application (detects missing
";","}",...). I know that PHP engine has an internal parser. Can we use it
to check our code without requesting every PHP pages? Or anyone knows about
some similar tool to check PHP error? Or we should write an simple PHP
parser? :) I have used Zend Safeguard Suite to detect PHP errors but I don't
want to buy it. I need something free. Thanks.

 Regards,
 Thai

--
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to