?php / / remove a file from the user' s home directory $username = $_POST['user_submitted_name']; $homedir = "/ home / $username"; $file_to_delete = "$userfile"; unlink ("$homedir / $userfile"); echo "$file_to_delete has been deleted !";?
?php / / efface un fichier dans un dossier racine $username = $HTTP_POST_VARS[ 'user_submitted_name']; $homedir = "/ home / $username"; $file_to_delete = "$userfile"; unlink ($homedir / $userfile); echo "$file_to_delete a été effacé !";?