For Programmers: Free Programming Magazines  


Home > Archive > PHP Smarty Templates > February 2005 > Re: [SMARTY] fetch() not working in shutdown function









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [SMARTY] fetch() not working in shutdown function
Mark Rogers

2005-02-25, 9:01 pm

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
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com