public static function checkFileConfigPhp() { // if config.php file exists it should be writable if (is_file(Model::ipFile('config.php')) && !is_writable(Model::ipFile('config.php'))) { return 'error'; } // if config.php file doesn't exist we should be able to create it if (!is_file(Model::ipFile('config.php')) && !is_writable(Model::ipFile(''))) { return 'error'; } return 'success'; }