A Flash Developer Resource Site

Results 1 to 4 of 4

Thread: new to xml, simple php script for this?

  1. #1
    Member
    Join Date
    Oct 2004
    Posts
    75

    new to xml, simple php script for this?

    I'm new to xml, so I just need a little help to get started. I generally pick things up pretty quickly. Say theres an xml file that contains this:
    HTML Code:
    <main>
    <item>
    <1>blahblah</1>
    <2>blah2blah2</2>
    </item>
    </main>
    is there a simple way for php to read this file, save it as variables, and simply spit it out? like this:

    1:blahblah
    2:blah2blah2

    I'm eventually going to convert this to flash variables and use it in flash, but I know how to do that already

  2. #2
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    PHP has functions to work with Xml. Why don't you just save the XML file to your server rather than converting it to variables?

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

  3. #3
    Member
    Join Date
    Oct 2004
    Posts
    75
    well the xml feed is on another server.

  4. #4
    Senior Member tupps's Avatar
    Join Date
    Jan 2001
    Location
    Melbourne
    Posts
    2,035
    Well PHP will be able to read the file from the other server. The other option would be to get the PHP script to proxy the xml to your flash application, and then read the xml in the flash file.

    Thanks

    Luke
    Flash-XML FAQ
    http://www.tupps.com/flash/faq/

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  




Click Here to Expand Forum to Full Width

HTML5 Development Center