麻辣家族討論版版's Archiver
麻辣家族討論版版
»
PHP
» PHP 刪除檔案
phpc120
發表於 2014-10-17 20:18
PHP 刪除檔案
在網路上找到的刪除檔案code
但是在 $file = "test.txt"; 這部分
要如何改成讓使用者挑選要刪除的檔案呢?[code]<?php
$file = "test.txt";
if (!unlink($file))
{
echo ("Error deleting $file");
}
else
{
echo ("Deleted $file");
}
?>[/code]
v60i
發表於 2016-3-24 00:09
檔案列表有搭配資料庫嗎?
頁:
[1]
麻辣家族討論版版為
麻辣學園
網站成員 由
昱得資訊工作室
© Since 1993 所提供