示例#1
0
 static function isNeeded($path)
 {
     $target = realpath($path) . DIRECTORY_SEPARATOR . EzGA::randString();
     if (@file_put_contents($target, "This is a test file") !== false) {
         if (@unlink($target)) {
             return false;
         }
     }
     return true;
 }