I've never tried to do that! I'll try now!
*Test one, I got a syntax error. The code should be:
PHP Code:
<?php
echo 'Click <a href="delete.php?act=delete">here</a> to delete this file.';
if ($_GET['act'] == 'delete') {
unlink('delete.php'); }
?>
*Second test, file deleted itself!
I might use this in the future  Thanks!
__________________
My Blog/Site: Please login or register to view this content. Registration is FREE
Last edited by rogem002; 04-05-2008 at 05:27 PM..
|