hi i need help deleting files via php,
i can delete files using php, but i want to be able to delete a file by typing in the name of the file.
the directory i want to delete a file from is "users/"
here is the unlink script i have so far
<? $myFile = "users/file.xml"; $fh = fopen($myFile, 'w') or die("can't open file"); fclose($fh); $myFile = "users/file.xml"; unlink($myFile); ?>