Hi,
i got this problem, when I use an executable to produce the output for
the html php sends headers screwing it all. For example, my script is
like this:
<?
.....
some stuff in php using database to prepare tempfile
....
....
passthru("cat $tempfile | /usr/local/bin/somecgi");
unlink($tempfile);
exit;
?>
in this example PHP does not generate HTML code, but the problem is it
still sends header "Content-type: text/html". Why? I really dont need
this , because my "somecgi" script produces its own headers and actualy
it is redirecting. So, this "content-type: text/html" that php generates
is really screwing it all and redirect is failing. How can I disable php
printing headers at all?
I am sure no HTML nor headers are printed during php execution before
"passthru" command. To make sure I placed a call to headers_sent()
before passthru() and it returned false, after passthru() it returns
true.
Any ideas what to do?
Thanks a lot
nikolai
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]