Habe ich auch so gemacht aber:
Warning: Cannot modify header information - headers already sent by (output started at xxx/admin/delete.php:3) in xxx/admin/delete.php on line 9
Warning: Cannot modify header information - headers already sent by (output started at xxx/admin/delete.php:3) in xxx/admin/delete.php on line 9
PHP:
<?php
if( isset($_GET["img"]) ){
echo "Lösche folgendes Bild: ".$_GET["img"];
if(file_exists($_GET["img"])) {
unlink($_GET["img"]);
}
}
header("Location: http://www.google.de");
exit;
?>