You are here: Re: $HTTP_REFERER crashes my system like clockwork « PHP Programming Language « IT news, forums, messages
Re: $HTTP_REFERER crashes my system like clockwork

Posted by Jim Carlock on 12/17/11 11:53

"walterbyrd" <walterbyrd@iname.com> wrote:
> This is not a matter of me using echo outside the <?php .. ?>. I can
> not use echo *anywhere."
>
> I have tried using ob_start() and ob_flush(), that didn't work.

The way HTTP works...

Client sends a GET request for a particular URL...

GET http://www.ebay.com/

The server, if there's something to deliver sends a "response" with
a 200 HTTP code. Then the communication begins between the
client and the server. Text typically gets something like html/text in
one of the headers for the html data that is sent. The browser then
starts receiving the HTML code. As it parses the HTML code, it'll
send more GET requests based upon the HTML encoding. For
instance, the <link rel="stylesheet" type="text/css" href="css/style.css" />
tells the browser that there's a stylesheet involved with the page,
and the browser then sends a request for the stylesheet. That's
why you'll see some pages present the text, then change the
way it all looks, because it's processing the HTML document in
a top down order.

For each image statement, <img src="images/image1.jpg" /> in
the HTML, causes the browser to send another GET request
for the image.

I'm not sure how PHP's buffered output works right at this
moment, so someone else needs to help out in this respect.

The echo() statement (function?) forces the server to send an
html/text header, any html code presented forces the same.
I'm not sure how PHP's buffered output works in this regard.

I'm curious about timed redirection. Perhaps someone else
can comment on that, meaning some html encoding has been
sent but you want a redirection to occur after a given number
of seconds.

--
Jim Carlock
Post replies to the group.

 

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

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