21,887
社区成员
发帖
与我相关
我的任务
分享
<?php
$mtime = explode(" ",microtime());
$starttime = $mtime[1] + $mtime[0];
$filename = 'Temp/_723415456_.png';
if (file_exists($filename)) {
echo "exists"; // exists
} else {
echo "not exist";
}
echo '<br />'.memory_get_usage().'<br />'; // 108912b 内存
$mtime = explode(" ",microtime());
$endtime = $mtime[1] + $mtime[0];
$totaltime = ($endtime - $starttime);
echo "load ".$totaltime." s"; // 0.000925064086914 s
?>
access(char *pathname,int mode/*0-是否存在,2-写,4-读,6-执行*/)