note 17695 deleted from function.register-shutdown-function by jimw

From: Date: Fri, 21 Dec 2001 01:00:06 +0000
Subject: note 17695 deleted from function.register-shutdown-function by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-23714@lists.php.net to get a copy of this message
I am not sure why it says above that you can't use echo, it seems to work fine, in fact my example below shows an excellent use in the function utilizing echo. The register_shutdown_function can be used to place a footer on a page: Create a function with the HTML for your footer: function footer() { echo "<center><img src=\"exit.gif\"></center>"; } Now at any place (even a global include, hint, hint) stick: register_shutdown_function("footer"); Now you got a footer that does not need to actually be at the end of the file!

« previous php.notes (#23714) next »