public function is_really_writable($file) { $this->load->helper('file'); if (!is_really_writable($file)) { if (!write_file($file, '', 'w')) { return FALSE; } } return TRUE; }