-
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
-
Senior Member
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
-
well the xml feed is on another server.
-
Senior Member
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
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|