Saved X
Google login
SignUp with Email
X

Php script to delete files on server

theindreshverma ( Edited  May 26, 11:44 pm )
Login

<?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.';
}
?>

Sourcecode Tags

More Sourcecodes

More Sourcecodes