删完后为什么file_exists函数不起作用了?
<?php
$filename = '/data/webroot/usercode/code/test.txt';
file_put_contents($filename, 'a');
echo file_exists($filename);
//删除文件$filename
unlink($filename);
echo file_exists($filename);
<?php
$filename = '/data/webroot/usercode/code/test.txt';
file_put_contents($filename, 'a');
echo file_exists($filename);
//删除文件$filename
unlink($filename);
echo file_exists($filename);
2015-10-17
举报