久久久久久久视色,久久电影免费精品,中文亚洲欧美乱码在线观看,在线免费播放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刪除文件的方法:可以利用unlink()函數(shù)來刪除文件。如果刪除成功,該函數(shù)返回true;如果刪除失敗,則返回false,具體使用方法如:【if (!unlink($file)){false}else{true}】。

      php怎樣刪除文件

      unlink() 函數(shù)刪除文件。如果成功,該函數(shù)返回 TRUE。如果失敗,則返回 FALSE。

      (推薦教程:php圖文教程)

      語法:

      unlink(filename,context)

      參數(shù):

      • filename 必需。規(guī)定要刪除的文件。

      • context 可選。規(guī)定文件句柄的環(huán)境。context 是一套可以修改流的行為的選項。

      (視頻教程推薦:編程入門)

      代碼實現(xiàn):

      <?php /**  * [$file 文件刪除執(zhí)行]  * @var string  */ $file = "test.txt"; if (!unlink($file))   {   echo ("Error deleting $file");   } else   {   echo ("刪除成功 $file");   } ?>

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