RE: [PHP] syntax checking?
| From: | Jay Blanchard | Date: | Tue, 22 Nov 2005 22:23:51 +0000 |
| Subject: | RE: [PHP] syntax checking? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-226312@lists.php.net to get a copy of this message | ||
[snip]
How should PHP syntax be checked before execution? Anything similar to
what option -c does in Perl?
% perl -c test.pl
[/snip]
from the command line
/usr/local/bin/php -i myScript.php
[/snip]
Ooops, sorry, should be an ell "l"
/usr/local/bin/php -l myScript.php