You are here: Re: [PHP] Re: headers .vs javascript location.href « PHP « IT news, forums, messages
Re: [PHP] Re: headers .vs javascript location.href

Posted by "Gustav Wiberg" on 09/19/05 07:47

----- Original Message -----
From: "bruce" <bedouglas@earthlink.net>
To: "'Jasper Bryant-Greene'" <jasper@bryant-greene.name>;
<php-general@lists.php.net>
Sent: Monday, September 19, 2005 6:14 AM
Subject: RE: [PHP] Re: headers .vs javascript location.href


regardless...

i've tried to resolve my issue using the buffering functions and still get
the same error...

if someone wants to look/examine my code, i'm more than willing to let you
see it... it's a test app so there's nothing of critical importance.

-bruce


-----Original Message-----
From: Jasper Bryant-Greene [mailto:jasper@bryant-greene.name]
Sent: Sunday, September 18, 2005 6:03 PM
To: php-general@lists.php.net
Subject: Re: [PHP] Re: headers .vs javascript location.href


Tim Van Wassenhove wrote:
> On 2005-09-17, "bruce" <bedouglas@earthlink.net> 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

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



--
No virus found in this incoming message.
Checked by AVG Anti-Virus.
Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date: 2005-09-16

Hi there!

Send the code, and I'll have a look... :-)

/G
http://www.varupiraten.se/

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация