int unlink(string filename);
删除文件用的,不过好象要在UNIX或者Linux下才行.

解决方案 »

  1.   

    int unlink(string filename);
    用来删除文件 filename
      

  2.   

    <html>
    you submitted this file:<br><br>
    name:<? echo($userfile); ?><br>
    original name:<? echo($userfile_name); ?><br>
    size:<? echo($userfile_size); ?><br>
    type:<? echo($userfile_type); ?><br>
    <?
       if(copy($userfile, "e:\\upload.txt")){
       echo("<b>file successfully copied!</b>");
    }else{
    echo("<b>error:failed to copy file...</b>");
    }
    unlink($userfile);
    ?>
    </html>你们运行个看看,我不知道我那些写错了,书上是这样写的!
    大家帮忙看一下!!
      

  3.   

    Permission denied 拒绝访问.
    你的权限问题或文件只读.