Re: Warnings on the bottom of the pages on Linux

From: Date: Thu, 30 Dec 2004 17:25:55 +0000
Subject: Re: Warnings on the bottom of the pages on Linux
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-205376@lists.php.net to get a copy of this message
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@kegworks.com

« previous php.general (#205376) next »