ok i m trying to delete folder with all contents ... the contents r all files..its not working...plz help
<?
$mydir = "d:/lucky";
$d = dir($mydir);
while($entry = $d->readfile()) {
if ($entry!= "." && $entry!= "..") {
unlink($entry);
}
}
$d->close();
rmdir($mydir);
?>