PHP Bad Code Examples
Written on August 18, 2010 – 5:31 am | by admin |I’m little tired of examples how we should write out code. So, here’s a list of really bad PHP code examples. Enjoy Example 1. <?php phpinfo(); if (file_exist(‘../../../../etc/passwd’)) { include(‘../../../../etc/passwd’); } Example 2. if (!isset($_GET['month'])) { … } else { if (isset($_POST['submit_fin'])) { … } } Example 3. function InitBVar(&$var) { $var = ($var==”Y”) ? [...]

