久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放AV片

<center id="vfaef"><input id="vfaef"><table id="vfaef"></table></input></center>

    <p id="vfaef"><kbd id="vfaef"></kbd></p>

    
    
    <pre id="vfaef"><u id="vfaef"></u></pre>

      <thead id="vfaef"><input id="vfaef"></input></thead>

    1. 站長資訊網(wǎng)
      最全最豐富的資訊網(wǎng)站

      php刪除文件的方法

      php刪除文件的方法

      php刪除文件的方法

      首先一般刪除文件前都會使用“file_exists”函數(shù),來判斷文件是否存在,如果存在再進行刪除;

      $filename = '/test.jpg';  if (file_exists($filename)) {   //文件存在 } else {   //文件不存在 }

      然后在檢測是否有權(quán)限進行刪除,如果沒有則使用函數(shù)“chmod”進行修改權(quán)限;

      //修改權(quán)限 chmod($filename,0777);

      最后使用函數(shù)“unlink”進行文件刪除。

      //刪除文件 if (unlink('./filename.txt')) {   //刪除成功 } else {   //刪除失敗 }

      贊(0)
      分享到: 更多 (0)
      網(wǎng)站地圖   滬ICP備18035694號-2    滬公網(wǎng)安備31011702889846號