note 17695 added to function.register-shutdown-function
| From: | php at dynamicink dot com | Date: | Thu, 20 Dec 2001 01:56:57 +0000 |
| Subject: | note 17695 added to function.register-shutdown-function | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-23347@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!
--
http://www.php.net/manual/en/function.register-shutdown-function.php
http://master.php.net/manage/user-notes.php?action=edit+17695
http://master.php.net/manage/user-notes.php?action=delete+17695
http://master.php.net/manage/user-notes.php?action=reject+17695