Anyone know how to delete the contents of a specified directory? I\'ve tried this:<br><br>
chdir (\"/cache\");<br>
$dir = dir (\".\");<br>
$dir->rewind();<br>
while ($file=$dir->read()) {<br>
echo(\"$file<br>\");<br>
}<br>
$dir->close();<br><br>
But it gives me this error:<br><br>
Warning: 46 is not a valid Directory resource in /home/httpd/html/host/host30/necrosys/avantgo/chriscutler.php<br><br>
Any Suggestions?