flash data integration:
Hello 2 every1,
I am in a middle of developing a dynamical Web page using Flash as an
interface, PHP script on the server and an MS Access database.
I ran into a problem (luckily seems already solved, but still...) with getting
the retrieved data from the DB to Flash. I am using the XMLConnector, DataSet
and DataGrid components. I started out with sending a simple static XML from
the PHP script - using the echo() or print() functions (as described in some
tutorials). But Flash just wouldn't read it. I added a TextArea to see the
contents of the XMLConnector (using XMLConnector.results property). It was
having problems with formatting. For example, for some reasone there was a
"<datapacket />" string added at the end, it was not getting "<" and ">"
symbols properly, even when expressed using < and > constants.
Then I ran into one of the examples posted on the PhilFlash Web site
http://www.philflash.inway.fr/contactphp/contactphp.html (thanks to Philippe
Nomail's post "Flash data integration with PHP", posted 03/16/2004). It shows
how to use DOM XML functions in PHP. And it works.
So, my question is, how come that Flash (XMLConnector) does not get the data
from PHP when using the echo() or print() functions? Is it always better to
stick to DOM when communicating XML files?
Thanks,
Simon.