Posted by jaschreiber on 11/18/06 15:51
It seems like setting the MIME-type to "application/xml" is working
when i publish the swf to my server. of course it doesn't work in the
flash testing environment, but that's surely just because php can only
be parsed on the server.... and i can live with that.
thanks!
Christoph Burschka wrote:
> jaschreiber@gmail.com wrote:
> but even when
> > i dumb that down to the following i get errors:
> >
> > <?php
> > header("Content-type: text/xml");
> > echo '<LOGINREPLY STATUS="OK" SESSIONID="dsljdlkjfasdlkjfaldkjflakdsj"
> > />';
> > ?>
> >
> > any ideas on what the problem is??
> > sorry this was so rambling.
> > Jason
> >
>
>
> This sample script causes an error when loaded in the browser?
>
> Make sure the "<?php " is at the absolute beginning of the document - no blank spaces or lines anywhere. Headers can only be sent before any output is written.
>
> What is the error message you get?
>
> --
>
> If the error occurs when parsing the response from within Flash, perhaps the content type needs to be set differently. Have you tried "application/xml"? This is just guesswork, however.
[Back to original message]
|