if (!@fopen($file, "r")) { return PEAR::raiseError($php_errormsg); }
$res = open_file();if (PEAR::isError($res)) { die("Couldn't open file: " . $res->getMessage());}