$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.
delete
(PECL zip:1.1.0-1.4.1)
delete — Falešná položka manuálu
Popis
void delete ( string $file )Toto je falešná položka manuálu, která by měla pomoci lidem, kteří hledají unlink() nebo unset() na špatném místě.
Viz také unlink() (mazání souborů), unset() (mazání proměnných).
delete
bmcouto at hotmail dot com
30-Sep-2006 01:30
30-Sep-2006 01:30
