On Tue, 30 Sep 2003, David Culp wrote:

> > It appears that it's just dumping the raw file to the browser, but with a
> > mime type of text/html, which presumably is why it's trying to make
> > something of the tags. If it were to return text/plain it may help.
> > Alternatively send it as text/html, but enclose the actual data in pre
> > tags so that it can just be cut and pasted into a file without being
> > mangled by anything.
>
> I had looked into that when I wrote Aero-Matic, but I couldn't find a method
> in PHP  to make the server change the mime type without adding some mime-type
> code to the output, which FlightGear would then not be able to parse.

Try header("Content-Type: text/plain"); near the top of the script that
generates the output (before you print anything).

> I was learning PHP as I went along, so I may have missed something.  What I
> would need to do is have the script communicate directly to the server,
> rather than through the document it's writing.  Although I don't see how the
> browser would gain knowledge of the mime type unless it's contained in the
> document.

It's in the headers sent by the web server - it doesn't form part of the
actual document, so won't be saved to the file.

-- 
Jon Stockill
[EMAIL PROTECTED]

_______________________________________________
Flightgear-devel mailing list
[EMAIL PROTECTED]
http://mail.flightgear.org/mailman/listinfo/flightgear-devel

Reply via email to