You are here: Re: Script Reloading Issue « PHP Programming Language « IT news, forums, messages
Re: Script Reloading Issue

Posted by Tom on 06/14/06 16:37

I use the following code to flush the buffer as suggested at
http://www.php.net/manual/en/function.ob-end-flush.php:

while (ob_get_level() > 0)
{
ob_end_flush();
}

However, I just noticed a comment:

"Apart from being mostly redundant, ob_end_flush() can be downright
damaging in some weird cases..."

So maybe it has something to do with that.

What I find odd is: if I comment out the echo statement (thus removing
the document statement and head section), the script loads normally. I
thought maybe it was a syntax error, but I've run the XHTML output
through the w3C validator and it validates.

I've also tried removing the buffer flush all together and just letting
the end of the script flush it, but that doesn't seem to solve the
reloading problem.

I'll tinker and tweak further. Anyone else have this problem with
outputing a web page's head section?

Tom



Rik wrote:

> Incorrectly flushing the buffer?
> What functions do you use to send the buffer?
>
> Grtz,
> --
> Rik Wasmus

 

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

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