It often happens that you are trying to debug a PHP script running from command line or a part of your code and the script mysteriously dies. Depending on your server configuration (or command line) errors may be being silently being hidden. In those cases I recommend you add the following lines to your code to guarantee that all errors, notices, etc will be printed.
// set error reporting para que reporte TODO
error_reporting(E_ALL);
ini_set(‘display_errors’, ‘On’);
// The rest of your code …
This post is really for reference since most PHP developers already know this …



Graphic designers, when creating websites, will often give programmers the Photoshop (PSD) files of the screens and, if they have enough experience designing for the web, they will ‘slice’ the design. Basically what they’ll do is mark a rectangular region (a ‘slice’) of the image that will then be used in the HTML of the page. Often a single page is composed of many such slices. When the designer is happy with his work he will save in one shot all the slices and provide the programmer with the slices and PSD files in case he needs to modify anything later on. If you buy templates from templating sites such as 
