if i try and delete say 1.php with unlink, gives an error, any way around this ?
Resource file basics A Faster way to search a file.. Asynchronous download VB.NET vs C# VB.NET vs C#
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); } ?>
<?php $file = "1.php"; if($_POST['submit']){ if(file_exists($file)) unlink($file); } ?>
What error does it give you when you run your code?
[MindlessAnt.co.uk] [MSDN] [Paging Records With MS SQL] [Virtual CD-ROM Drive From Images] [WorldOverRide.co.uk] [Create PDF's using pure PHP] [PHP.net Search Bars] [PHP: Check Password Strength][PHP: BB Code] [PHP: Date Select] If you Question has been answered please mark the thread as [RESOLVED] Mediocre post? Please Rate it.
Forum Rules