Jason Barnett wrote:

Is it possible to achieve this in Linux ?

Any help would be apreciated.

Warm regards.



http://us4.php.net/manual/en/ref.outcontrol.php


Call me stupid (actually please don't :) ) but how does output buffering help in this case? Are you suggesting he write an output handler?

If he wants to go that far, yes, but he doesn't have too. If all the OP wants to achieve is have his error messages appear at the bottom of the output instead of inline....


<?php

ob_start();
include ( "nofile.inc.php" );

// Some more PHP stuff

//  Capture stuff before display
$possible_errors = ob_get_clean();
ob_end_clean();

//  What I want to display first
echo ( "This is the output of my script<br /><br />" );

//  Display Errors if exist
if ( ! empty ( $possible_errors ) ) {
        echo ( $possible_errors );
}

?>

--
John C. Nichel
ÜberGeek
KegWorks.com
716.856.9675
[EMAIL PROTECTED]

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to