Startseite Aktuelles News* Pressemitteilungen* SELFPHP Über SELFPHP Werbung Kontakt Unsere Banner Impressum Qozido Diving Edition Snorkeling Edition SELFPHP Dokumentation PHP-Skripte PHP Befehlsreferenz PHP 5 Praxisbuch PHP Code Snippets SELFPHP in Buchform Anbieterverzeichnis Globale Branchen Webhosting/Server Services Forum* RSS-Feeds* Downloads* Gratis-Video-Lektionen* SELFPHP auf Heft-CD* Newsletter* Internet Security sponsored by Stellenangebote* Premium-Partner Webhosting/Serverlösungen Produktempfehlung SteadyBackup
<?PHP $strDir = './tmp/'; $oDir = dir( $strDir ); while ( false !== ( $strFile = $oDir->read () ) ) { if ( $strFile != '.' && $strFile != '..' && ! is_link ( $strDir . $strFile ) && is_file ( $strDir . $strFile ) ) { if ( @ unlink ( $strDir . $strFile ) ) { print 'Gelöscht: ' . $strDir . $strFile . '<br />' . "\n"; } else { print 'Fehlschlag: ' . $strDir . $strFile . '<br />' . "\n"; } } } $oDir->close(); ?>
Siehe Code-Snippet.
Gelöscht: ./tmp/a.xyz<br /> Gelöscht: ./tmp/b.xyz<br /> Gelöscht: ./tmp/c.xyz<br /> Gelöscht: ./tmp/d.xyz<br />