//运行成功 <?php $document_root = $_SERVER['DOCUMENT_ROOT']; $filename = "$document_root/test.txt"; if(file_exists($filename)){ echo "文件存在"; }
发到问答来删不了。。。