tyhoerr Posted July 3, 2007 Share Posted July 3, 2007 Hi, I'm wondering if it's possible and how difficult it would be to code the following scenario: Firstly, I have an upload system implemented into my website already. I'm using the SimpleView gallery on my website. You put a photo in the images directory and add an entry into the gallery XML file. Example Entry: <image> <filename>Imagefile.jpg</filename> <caption>Caption 13</caption> </image> What I want is an easy way for members to upload their own images without having to manually change the XML file. Basically the page will have a Browse field for the image upload and a enter caption field. Then a submit button to make it all happen. How can i code the page to add an XML entry based on the file uploaded? If it'd be easier to use a specific file uploading system, i'm open to that too. Thanks! Link to comment https://forums.phpfreaks.com/topic/58302-auto-change-xml-file/ Share on other sites More sharing options...
per1os Posted July 3, 2007 Share Posted July 3, 2007 The question is if you want to add a "caption" field to the database you can generate this on the fly and make it so the user can easily pull the xml for a picture with something like make_xml.php?image=Imagefile.jpg which would then display a valid xml file for that picture. You just have to use headers to set the content-type to be xml compliant etc. Link to comment https://forums.phpfreaks.com/topic/58302-auto-change-xml-file/#findComment-289069 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.