Created
August 11, 2021 14:20
-
-
Save shiv122/e5250fbaec9ccb97e673531ba43a2d3f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$file_pointer = '../' . $_POST['path']; | |
if (!unlink(realpath($file_pointer))) { | |
echo ("$file_pointer cannot be deleted due to an error"); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment