PDA

View Full Version : Doing some research.



James.Easy
29-10-2006, 11:40 PM
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.

Jackboy
30-10-2006, 05:06 AM
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.


Yes there is a "script" to delete files off a server using PHP. Are you wanting the script?

sam iz da buz
30-10-2006, 08:53 AM
A script to delete files of a server? There is one but i'm not sure what it's called

James.Easy
30-10-2006, 12:39 PM
Yes there is a "script" to delete files off a server using PHP. Are you wanting the script?

Yes please :)

:Blob
30-10-2006, 01:13 PM
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)

Splinter
30-10-2006, 04:21 PM
just


<?php
unlink("file.php");
?>

will delete the file

:Blob
30-10-2006, 04:32 PM
Yes but you would have to update that every single time you wanted one deleted.

James.Easy
30-10-2006, 11:06 PM
I need it to delete everything on a drive.

:Blob
31-10-2006, 10:05 AM
On your own computer? Format it. I forgot how to format though.

Want to hide these adverts? Register an account for free!