Using PHP to generate an .xml file

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
DashMasterful
Forum Newbie
Posts: 3
Joined: Thu Nov 13, 2008 11:32 am

Using PHP to generate an .xml file

Post by DashMasterful »

Ok so I will try my best to explain, my work is producing a Flash game in which all its content(images,text) is generated dynamically from an external .xml file, however, we would like this game to be fully customizable, so players should be able to enter their own images and text into the game. However, not all users know xml, and so we want to have a website that generates a customized .xml file for them. Ideally, I want to create a website that takes input from the user, and "converts" that input into .xml format, the user can then copy that code into their own xml file. I want to know if someone can point me in the right direction on how to go about this, thanks
User avatar
papa
Forum Regular
Posts: 958
Joined: Wed Aug 27, 2008 3:36 am
Location: Sweden/Sthlm

Re: Using PHP to generate an .xml file

Post by papa »

HTML form and then some nice php functions:
http://se.php.net/manual/en/book.xml.php
DashMasterful
Forum Newbie
Posts: 3
Joined: Thu Nov 13, 2008 11:32 am

Re: Using PHP to generate an .xml file

Post by DashMasterful »

thanks dude
josh
DevNet Master
Posts: 4872
Joined: Wed Feb 11, 2004 3:23 pm
Location: Palm beach, Florida

Re: Using PHP to generate an .xml file

Post by josh »

Post Reply