Could not open input file: composer.phar error in Symfony 2. SOLVED.

This is a common issue that is related to bad installation of our favorite PHP package manager: Composer. Let’s fix it: Open your terminal and run following comand in order to get the latest version of Composer: curl -sS https://getcomposer.org/installer | php I recommend you to move the composer.phar file to a global “bin” directory,…

How to solve the “Cannot modify header information – headers already sent by…” error in your PHP applications

Today, when I updated a repository in git I realized that my co-workers -accidentally- broke a project (in CakePHP). What error was displaying? simple and a little confusing: Warning (2): Cannot modify header information – headers already sent by (output started at /app/config/database.php:1) [CORE/cake/libs/controller/controller.php, line 742] So, for solving this common PHP issue, I recommend…