Re: Warnings on the bottom of the pages on Linux

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
john@xxxxxxxxxxxx

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux