Re: [SMARTY] fetch() not working in shutdown function
| From: | Mark Rogers | Date: | Fri, 25 Feb 2005 18:04:42 +0000 |
| Subject: | Re: [SMARTY] fetch() not working in shutdown function | ||
| References: | 1 | Groups: | php.smarty.general |
| Request: | Send a blank email to php-smarty-general+get-12266@lists.php.net to get a copy of this message | ||
Abdul-Wahid Paterson writes:
> Does anyone know of any reason the fetch wouldn't work in this situation?
The shutdown functions cant send any output, as the request has been
completed by this point. From the PHP help:
The registered shutdown functions are called after
the request has been completed (including sending
any output buffers), so it is not possible to send
output to the browser using echo() or print(), or
retrieve the contents of any output buffers using
ob_get_contents().
This is a PHP limitation (well, not a limitation, since it does what it is
designed to do).
--
Mark Rogers,
More Solutions Ltd