- ob_start: documentation ( source)
- flush: documentation ( source)
- ob_get_contents: documentation ( source)
- ob_end_clean: documentation ( source)
- ob_implicit_flush: documentation ( source)
- header: documentation ( source)
<?php
ob_start();
ob_implicit_flush(0);
echo 'text davor';
header('HTTP/1.1 301 Moved Permanently');
header('Location: /index.php?mod=bildergalerie');
exit;
echo 'text danach';
$page = ob_get_contents();
$length = strlen($page);
ob_end_clean();
//echo $page;
flush();