Php script to delete files on server

<?php
$file = "image.jpg";

// Use unlink() function to delete a file
if (unlink($file)) {
   echo 'File has been deleted';
}
else {
    echo 'File cannot be deleted.';
}
?>

Related Sourcecode

More Sourcecode

×
Google login
SignUp with Email
X