php -l

Jon Parise jon@horde.org
Wed, 1 Aug 2001 22:40:25 -0400


I just discovered this last week:

If you have a CGI version of PHP available, you can pass a script
to it using the -l option (lint) to test for syntax errors.

    e.g.  php -l index.php

It's handy for a quick test before a commit.  I might even look
into adding this capability to the cvs check-in scripts to that
it will only accept commits that pass this test. =)

-- 
Jon Parise (jon@csh.rit.edu)  .  Rochester Inst. of Technology
http://www.csh.rit.edu/~jon/  :  Computer Science House Member