You are here: Want headers sent NOW. How to make PHP send them? « PHP Programming Language « IT news, forums, messages
Want headers sent NOW. How to make PHP send them?

Posted by Chapman Flack on 11/16/46 11:28

Ok, I've registered all the right headers to send, with
header( 'Content-Type: .../...') etc.

The next thing to do is exec a program that will be producing the
actual content. The content MUST begin immediately after the headers
(that is, after the single empty line that separates the headers from
the body).

PHP won't seem to send the headers unless I tell it to print something.
I tried printing an empty string print(''); - still doesn't work.
I can't go printing a NON-empty string - that would corrupt the
content,
exactly the thing I need to avoid.

I've tried:
while ( @ob_end_flush() );
print('');
while ( @ob_end_flush() );

Still no good. Headers don't get sent.

The manual is very helpful about how to AVOID getting the headers sent
before you want them. Ok, NOW I want them. I haven't stumbled on
anything
for how to MAKE the headers go. How do I do it? PHP 4.3.11.

Thanks,
-Chap

 

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

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