为什么加else会报错啊?去掉else正常输出,

<?php
if(file_exists("66.txt"));
{
echo " already exists";
}
else
{
echo "eeeeeeeeeee";
}
?>

作者: jsmmya   发布时间: 2011-06-06

if(file_exists("66.txt"));

最后的分号去悼!

作者: rxp2011   发布时间: 2011-06-06

引用 1 楼 rxp2011 的回复:
if(file_exists("66.txt"));

最后的分号去悼!

那这句哪错了呢?
<?php   
$filename = '66.txt'
if (file_exists($filename))

  echo "The file $filename exists";   
} else 
{   
  echo "The file $filename does not exist";   
  }   ?>

作者: jsmmya   发布时间: 2011-06-06

引用 1 楼 rxp2011 的回复:
if(file_exists("66.txt"));

最后的分号去悼!
<?php   
$filename = '66.txt';
if (file_exists($filename))

  echo "The file $filename exists";   
} else 
{   
  echo "The file $filename does not exist";   
  }   ?>

作者: jsmmya   发布时间: 2011-06-06

引用 1 楼 rxp2011 的回复:
if(file_exists("66.txt"));

最后的分号去悼!

http://baike.baidu.com/view/2122248.htm
百度词典里面的,运行在我这里提示出错。

作者: jsmmya   发布时间: 2011-06-06