<?php
$handle=opendir ('../'.$delete.'/images');
while (false !== ($file = readdir ($handle))) {
if ($file != "." && $file != "..") {
unlink('../'.$delete.'/images/'.$file.'');
}
}
echo "alles gelöscht";
closedir($handle);
rmdir("../".$delete."/images");
unlink("../".$delete."/calculate.php");
unlink("../".$delete."/gallery.php");
rmdir("../".$delete."");
header("Location: http://www.google.ch")
?>
der header macht mir probleme, gibt folgenden fehler aus...
Warning: Cannot modify header information - headers already sent by (output started at ..bla bla) in blalallalalaallala ... on line 16
$handle=opendir ('../'.$delete.'/images');
while (false !== ($file = readdir ($handle))) {
if ($file != "." && $file != "..") {
unlink('../'.$delete.'/images/'.$file.'');
}
}
echo "alles gelöscht";
closedir($handle);
rmdir("../".$delete."/images");
unlink("../".$delete."/calculate.php");
unlink("../".$delete."/gallery.php");
rmdir("../".$delete."");
header("Location: http://www.google.ch")
?>
der header macht mir probleme, gibt folgenden fehler aus...
Warning: Cannot modify header information - headers already sent by (output started at ..bla bla) in blalallalalaallala ... on line 16
Kommentar