$myFile = "testFile.txt";
$fh = fopen($myFile, 'w') or die("can't open file");
fclose($fh);
Now to delete testFile.txt we simply run a PHP script that is located in the same directory. Unlink just needs to know the name of the file to start working its destructive magic.
$myFile = "testFile.txt";
unlink($myFile);
The testFile.txt should now be removed.
説明
void delete ( void )この関数はダミーの関数エントリであり、間違った場所で unlink() または unset() を要求する人の要求を満足させるためのものです。
返り値
値を返しません。
参考
| ファイルを削除するには unlink() |
| 変数を削除するには unset() |
delete
bmcouto at hotmail dot com
01-Oct-2006 05:30
01-Oct-2006 05:30