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

解决方案 »

  1.   

    if(file_exists("66.txt"));最后的分号去悼!
      

  2.   

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

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

  3.   

    <?php   
    $filename = '66.txt';
    if (file_exists($filename))

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

  4.   

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

  5.   

    这次少了分号。
    一下这句。
    $filename = '66.txt'
      

  6.   

    又是这家伙,你不是说学.NET吗?而且都是语法问题,说明这人懒惰,不去看手册,不去baidu,不去gl,老喜欢别人帮忙解决问题?建议以后大家不用回答此类问题,会拉低整个版的!
      

  7.   

    哈哈if的语法是if(表达式)
    {
    程序1
        2
    ……}else{}
    你的程序多了个分号!!!!!
      

  8.   

    if(file_exists("66.txt"));
    if后面没有分号!
    如果有分号就接着执行if下面的一句语句,不会有ifelse的情况出现
      

  9.   

    <?php
    if(file_exists("66.txt")); 红色部分的分号去掉就ok
    {
    echo " already exists";
    }
    else
    {
    echo "eeeeeeeeeee";
    }
    ?>