Cosa ho sbagliato ?Codice PHP:
<?php
if ($handle = opendir('../tmp')) {
while (false !== ($file = readdir($handle))) {
unlink( $file ); rmdir( $handle );
}
closedir($handle);
}
?>
Cosa ho sbagliato ?Codice PHP:
<?php
if ($handle = opendir('../tmp')) {
while (false !== ($file = readdir($handle))) {
unlink( $file ); rmdir( $handle );
}
closedir($handle);
}
?>