On Wednesday 08 January 2003 06:42, Jean-Christian Imbeault wrote:
> Timothy Hitchens ) wrote:
> > Issue... as I said before the register shutdown won't work because:
> >
> > - output from the shutdown is not visible nor do you have access to some
> > variables
>
> You are right. From the manual:
>
> http://www.php.net/manual/en/function.register-shutdown-function.php
>
> " 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()."
That's not right now. The manual is outdated. See this bug report 
http://bugs.php.net/bug.php?id=15209.
This behavior was changed from 4.06 to 4.1. In newer versions of php the 
registered functions will run before the connection is closed so ouptput can 
be done from there as well.
So Jean you can make it as it is suggested on this page: 
http://www.php.net/manual/en/features.connection-handling.php

        Arpi

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to