how do i create a simple XML file with PHP 4.4.2-1?

    Date: 02/03/06 (Web Development)    Keywords: php, xml

    I am trying to create an XML file (specifically, an XSPF file) based upon mp3 files located in a particular directory called 'audio'. I am not sure which functions I need to use, though.



    http://xspf.org/ns/0/">
     
      
        audio/back2basics.mp3n>
        images/digid.jpg
        back2basics.mp3
      
      
        audio/procrastinator.mp3tion>
        images/digid.jpg
        procrastinator.mp3on>
      
      
        audio/farewell.mp3
        images/digid.jpg
        farewell.mp3
      
     



    I am under the impression that I do not need to use XML specific functions because XML specific functions are only needed for parsing an XML file. am I wrong? I am not exactly sure how to go about doign this, though I can guess that it is not that complicated. I have never used PHP to create a file before.

    Source: http://community.livejournal.com/webdev/290786.html

« Logging which links people... || Exporting a web page... »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home