file and folder deletion
I fel in love with FB the first time i saw it and have been dying to use it in a project, now i have the chance i need some help in altering it.
I have created the following function to delete files and folders, but want to include the php function in the index file to reduce the ammount of files. But i need an argument, being a designer not a developer, i need some help.
On top of not being able to run the function inside the index file, i also need it not to error on either argument when a file/folder name is not found.
If you need any more info please ask.
<div class=\"deletef\"><form action=\"_deletefolder.php\" method=\"get\">
<input type=\"text\" size=\"10\" name=\"foldername\">
<input type=\"submit\" value=\"Delete\">
</form>
// The workings to delete
<? rmdir($_GET["foldername"]); unlink($_GET["foldername"]); ?>
0
This discussion has been closed.