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!
__________________
PHP Code:
Add_Talkupation('rogem002'); // Because sharing is awesome!
Last edited by rogem002 : 04-05-2008 at 05:27 PM.
|