Hi,
I'm writing on a PHP script which requires an installation. I've got all the installation files in the same folder, and I want to remove this folder after installing with a click on a link or button or something like that. Is that possible? I've been searching on Google a long time... without luck! I hope someone can help. Thanks in advance,
Nico
EDIT:
Since this topic gets a lot of views still, I'll post an example here:
PHP Code:
// Path to directory you want to delete
$directory = 'dir';
// Delete it
if (rmdir($directory))
{
echo "{$directory} has been deleted";
}
else
{
echo "{$directory} could not be deleted";
}