Is there sutch a script, that can delete files on a drive on a server.I know you can using JAVA but i wonderd if you could, using PHP.

Is there sutch a script, that can delete files on a drive on a server.I know you can using JAVA but i wonderd if you could, using PHP.
VB Programmer looking for work
A script to delete files of a server? There is one but i'm not sure what it's called
Do you mean just normal hosting?
<?
$file = $_GET['file'];
unlink($file);
?>
If so, use that, then if you save it as delete.php then go to delete.php?file=filename.gif it will delete filename.gif, but it would need chmod to 777 furst (delete.php)
just
will delete the filePHP Code:<?php
unlink("file.php");
?>
Yes but you would have to update that every single time you wanted one deleted.
I need it to delete everything on a drive.
VB Programmer looking for work
On your own computer? Format it. I forgot how to format though.
Want to hide these adverts? Register an account for free!