You are viewing revision #2 of this wiki article.
This is the latest version of this article.
You may want to see the changes made in this revision.
Scenario ¶
So I've been busy making lots of modifications to my views/models/controllers - came to test the app and got a blank screen. Nothing in the application.log file so must be a syntax error somewhere... But which file?
Solution ¶
If you are using linux (Ubuntu in my case) and have php locally, then run the following from a terminal from the protected directory
find . -name \*.php -exec php -l "{}" \;
This will syntax check each php file recursively from the current directory.
Full credit to http://www.electrictoolbox.com/php-command-line-syntax-checking/
Apache?
I don't see how Apache is a requirement? Looks like pretty standard
find
andphp
... No Apache needed?@rudiedirkx
My mistake, I thought you needed Apache to run the php command tool :)
If you have any questions, please ask in the forum instead.
Signup or Login in order to comment.