if i try and delete say 1.php with unlink, gives an error, any way around this ?
Printable View
if i try and delete say 1.php with unlink, gives an error, any way around this ?
This code worked fine when i tried to delete 1.php...PHP Code:<?php
$file = "1.php";
if($_POST['submit']){
if(file_exists($file))
unlink($file);
}
?>
What error does it give you when you run your code?