How to delete the file using php
We can delete the file using php with the help of unlink function.
Define this function like this:
|unlink ( string $filename [, resource $context ] )|
|Path to the file.|
|Context support was added with PHP 5.0.0|
$fh = fopen(‘file.html’, ‘a’);
fwrite($fh, ‘<h1>Hello world!</h1>’);