Welcome Guest, Not a member yet? Register   Sign In
help file xml
#1

[eluser]jonny tran[/eluser]
hello ,i want using php create file xml width content:
<?xml version="1.0" encoding="utf-8"?>
<playlist version="1" >
<trackList>
<track>
<location>http://domain.com/images/nhac.mp3</location>
</track>
</trackList>
</playlist>
please! help me
thank you! very much
#2

[eluser]sooner[/eluser]
i could not understand your question..but if u need help regarding creating an xml file using PHP..you can see xml functions for PHP in php official website.
#3

[eluser]Madmartigan1[/eluser]
There are 2 options I can think of.

Have php write (create) the xml file, or output the xml directly with php and send the proper headers.

For instance, you can have a tracklist controller, with a method that takes the filename as an argument, and echo out the appropriate xml while sending an xml header. There are a lot of ways to do this.

What have you tried so far?




Theme © iAndrew 2016 - Forum software by © MyBB