Ik zoek dat ik via een .php bestand alle files (naar keuze) kan deleten.
Hoe doe ik dat?
Hoe doe ik dat?

[COLOR= #0000BB]<?php
$fh[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]test.html[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]a[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fh[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]<h1>Hallo</h1>[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fh[/COLOR][COLOR= #007700]);[/COLOR]
[URL="http://www.php.net/unlink"]unlink[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]test.html[/COLOR][COLOR= #007700]);[/COLOR]
?> Christopher schreef:Nee, daarmee maak je een file test.html en delete je het weer.Beetje onhandig, zoiets dan?
Maar dan heb ik nog niks gedelet[COLOR= #0000BB]<?php $fh[/COLOR] [COLOR= #007700]=[/COLOR] [URL="http://www.php.net/fopen"]fopen[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]test.html[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]a[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/fwrite"]fwrite[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fh[/COLOR][COLOR= #007700],[/COLOR] [COLOR= #DD0000]<h1>Hallo</h1>[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/fclose"]fclose[/URL][COLOR= #007700]([/COLOR][COLOR= #0000BB]$fh[/COLOR][COLOR= #007700]);[/COLOR] [URL="http://www.php.net/unlink"]unlink[/URL][COLOR= #007700]([/COLOR][COLOR= #DD0000]test.html[/COLOR][COLOR= #007700]);[/COLOR] ?>

http://www.webcheatsheet.com/PHP/working_with_directories.phpVideotube schreef:DROP DATABASE dbnaamBedoel je een DB, van PHPMyAdmin? Zoja, dan moet het via een query.
Ik ga even die query zoeken en dan posten.
