| Versionen | |
|---|---|
| drupal6 | file_delete( |
| drupal7 | file_delete($file, $force = FALSE) |
Delete a file.
$path A string containing a file path.
TRUE for success, FALSE for failure.
includes/
<?php
function file_delete($path) {
if (is_file($path)) {
return unlink($path);
}
}
?>
Kommentare
Kommentar hinzufügen