View Single Post

  #12 (permalink)  
Old 05-09-2008
Andrius Dijakas
 
Posts: n/a
Default Re: Tool to parse and validate PHP script?

Gilles Ganault wrote:

> On Thu, 08 May 2008 17:22:59 -0400, sheldonlg <sheldonlg> wrote:
>>You will never have a compile-time error with PHP since PHP is a script
>>and, hence, doesn't compile. Perhaps you mean run-time issues?

>
> No, I meant syntax errors that could be picked by just parsing the
> source, so those simple issues are detected before actualling running
> the program. "php -l" did the trick (along with "... or die" to detect
> faulty SQL commands). Thanks.


some editors have syntax checking, as for example jEdit (www.jedit.org) with
phpparser plugin installed.

--
a.d.
Reply With Quote