Re: Re: headers .vs javascript location.href

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Tim Van Wassenhove wrote:
On 2005-09-17, "bruce" <bedouglas@xxxxxxxxxxxxx> wrote:

need to talk to someone to figure out how/what i need to do to use the php
'headers' function, as opposed to the javascript 'location.href'.

i've tried to implement the buffering functions, but still get the same
error...


Now, if you read the documentation of output buffering you will see that
it does *not* buffer headers..


That's kind of the point. Headers must be sent before any other output, and output buffering stops that output from being sent until the very end of the script (unless you call ob_end_flush() first). So output buffering allows you to send headers at any time in your script.

--
Jasper Bryant-Greene
Freelance web developer
http://jasper.bryant-greene.name/

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux