Quote:
Originally posted by piotrm
For example currently for the site I am making I have an option of checking its syntax with a script called "weblint" which runs on a command prompt. But in Perl its pretty easy to run weblint on the webserver, send in some html to it and read its output and then one can display the html with the information weblint provided. PHP probably can do this too in some odd way but I doubt it has as much support for such things as Perl does.
|
http://www.php.net/manual/en/features.commandline.php
a syntax checker, based on (or using) 'lint', is built into php
Code:
bash-2.05$ php -l blah.php
<br />
<b>Parse error</b>: parse error, expecting `','' or `';'' in <b>/home/chiefdel/blah.php</b> on line <b>4</b><br />
Errors parsing blah.php