public function readFile($path) { if (!($data = @file_get_contents($path))) { throw new Exception("File not found: {$path}"); } return $data; }