<?php
//$fp=fopen("aaa.txt","r");
//echo 'ok';
//1:判断文件是否存在
/*if(!file_exists("aaa.txt")){
echo 'bucunzai';
exit();
}else{
$fp=fopen("aaa.txt","r");
echo '打开成功';
fclose($fp);
}*/
/*if(!file_exists("aaa.txt")){
die("文件不存在");
}*/
file_exists("aaa.txt") or die("文件不存在!!");
echo 'ok';
?>