views:

34

answers:

1

Pretty straight forward question. I'm quite happy with my simple text editor but sometimes it'd be nice to run something like PyFlakes on my code before running to check for any obvious errors like undeclared variables or syntax errors.

+1  A: 

just run

 php -l filename

:)

duplicate of http://stackoverflow.com/questions/378959/is-there-a-static-code-analyzer-like-lint-for-php-files

Orbit
Wow, cool! Thanks.
pr1001