xn_is_writable($file)
检测文件或目录是否可写,兼容 Windows。
$file:文件/目录路径
<?php include "./xiunophp/xiunophp.php"; $file = "./log/"; $r = xn_is_writable($file); // 结果: TRUE/FALSE ?>