|
Posted by Chapman Flack on 10/13/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]
|