Mailinglisten-Archive |
>>> function foo()
>>> {
>>> ob_start();
>>> include('file.php');
>>> ob_end_flush();
>>> exit;
>>> }
function foo()
{
ob_start();
include('file.php');
$inhalt = ob_get_contents();
ob_end_clean();
echo $inhalt;
}
Vielen Dank, das funktioniert so :)
Aber ein komisches Gefühl habe ich schon dabei, denn sollte nicht
ob_end_clean(); den gesamten Ausgabe-Puffer löschen. Also auch das was ich
vor dieser Funktion schon angesammelt habe. Allem anschein nach, ist das
Resultat ok.
Grüße Harald
php::bar PHP Wiki - Listenarchive