error_reporting(E_ALL); will work However, that will only show you parsing errors or using variables that are not set, and things like that. It will not show you logic errors -- that you need to debug yourself, usually by outputting variables in your script. I recommend using
http://www.php.net/var_dump