刚接触php,弄个教程看看,实验试验,以下代码没有文件的时候出现了File not found,有文件的时候倒是没反映了。也没看到打开的文件,我把welcome.txt放在以下php文件所在的文件夹下了,有什么不妥吗?
<?php
if(!file_exists("welcome.txt"))
 {
 die("File not found");
 }
else
 {
 $file=fopen("welcome.txt","r");
 }
?>