$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.
Beschreibung
void delete
( void
)
Dies ist ein "Dummy-Handbuch-Eintrag" für diejenigen, die nach einer Funktion wie unlink() oder unset() an der falschen Stelle suchen.
Rückgabewerte
Es wird kein Wert zurückgegeben.
delete
bmcouto at hotmail dot com
30-Sep-2006 10:30
30-Sep-2006 10:30