📅  最后修改于: 2022-03-11 14:54:43.591000             🧑  作者: Mango
$myFile = '/path/to/myFile.txt';
if (!file_exists($myFile)) {
print 'File not found';
}
else if(!$fh = fopen($myFile, 'w')) {
print 'Can\'t open file';
}
else {
print 'Success open file';
}