How do I get something more meaningful than \'FALSE\' when I can\'t open a file.
$myFile = \"/home/user/testFile.txt\";
$fh = fopen($myFile, \'w\') or die(
fopen
should raise an E_WARNING if it fails. See error_get_last or set_error_handler(*) to catch it. Other than that you can use file_exists and is_readable to check whether the file is missing or there's another (probably permission-related) problem.
(*) I consider it good practice to always set an error handler that turns all PHP errors into exceptions.
Use error_get_last() to catch the (supressed) errors in php:
$f = @fopen("x", "r") or die(print_r(error_get_last(),true));