You are here: Re: sending XML data from PHP to Flash « All PHP « IT news, forums, messages
Re: sending XML data from PHP to Flash

Posted by Christoph Burschka on 11/18/06 09:37

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.

 

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

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