Online beautifier : http://beautifytools.com/php-beautifier.php
Lowercase all control structures
While installing Bludit, it complains about missing modules (gd, dom, mbstring…). They can be easily installed with aptitude. But, once installed, Bludit still reports they were missing, although a
phpinfo() were reporting that they were properly loaded! This was due to the fact that the module was installed for the php7 version, and apache used the php5 version. Disabling php5 and enabling php7 (
a2enmod), then restarting apache, fixes this issues.
To write to the console from a script launched from the embedded PHP web server (
php -S …), use