delete
(no version information, might be only in CVS)delete -- A dummy manual entry
Description
void delete ( string file)
This is a dummy manual entry to satisfy those people who are looking for unlink() or unset() in the wrong place. See also: unlink() to delete files, unset() to delete variables. 

解决方案 »

  1.   

    unlink
    (PHP 3, PHP 4 )unlink -- 删除文件
    说明
    bool unlink ( string filename)
    删除 filename。和 Unix C 的 unlink() 函数相似。如果成功则返回 TRUE,失败则返回 FALSE。 注: 自 PHP 5.0.0 起 unlink() 也可以用于某些 url wrapper。参考 附录 I 中的列表看哪些封装协议支持 unlink()。 
      

  2.   

    function DeleteFile($filename)
    {
       if(@unlink($filename))
       {
                   Echo "Ok";
              }

    }//end func