开发者

Populating XML file in PHP

Currently, a friend of mine is wanting a Flash Gallery and the ability to upload files. I don't have the time of day to teach him where to edit the XML properly or dare I even give him FTP access.

He hand picked out this gallery program: http://flashnifties.com/xml_gallery.php Which as you can tell works off XML.

Creating a script 开发者_如何学JAVAto have him upload files to a directory is a non-issue. My issue is that what's the proper way to loop through a directory and populate an XML file.

A friend suggested the PHP function SimpleXML and I was wondering if anyone else had a similar solution.


  1. DirectoryIterator for looping through directory (possibly even RecursiveDirectoryIterator)
  2. SimpleXML indeed to build (simple) XML
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜