«
PHP: Get File Extension Code: ToolTips »
I ran across this function to delete a file from the server if it exists some time ago. It has been very useful to me.
<?php
$DelFilePath =
“/home/path/to/file”;
if (file_exists($DelFilePath)) {
unlink($DelFilePath);
}
?>
Category: Code :: RSS 2.0 feedTags: Code, file delete, php
Leave a Reply