I'm used to doing something like
open(FILE,'>something.txt') || die "$!";
in Perl and having my code die with something useful in the output. I also use CGI::Carp's 'fatalsToBrowser' a lot to get output to the browser when something goes wrong.
When I'm coding now in PHP and something's wrong, I get blank output in the browser and no hint of where to start. I can get the line number from __LINE__ but not the error message from the function.
What do I have to do to see warnings and errors, as in for instance the above example -- I was doing imagejpeg() output to a file and it didn't get written but I couldn't figure out why not. (Safe mode problems, it turns out, see the Manual, http://au.php.net/ma...ejpeg.php#58391)
Apologies if this question has a very obvious answer. I have done some searching, honestly!