Go Back   kirupaForum > Development > Server-Side (PHP, SQL, ASP.NET, etc.)

Reply
 
Thread Tools Display Modes
Old 11-13-2009, 05:21 PM   #1
mastermode
Registered User
 
mastermode's Avatar
Modifying an existing XML file

Hello there!

This is very unfamiliar terrain for me, I don't know a lot about PHP.

I've recently used some of it's abilities to create an XML file, based on some XML data that I would have sent from Flash via an XML object. But every time the XML would get modified, I would have had Flash send the whole data, overwriting the existing content.

Now, I have this question (which I know probably is a noob question, but meh..): If I send an XML Node from Flash, and use PHP to catch it, can I open the XML file, alter its content (i.e concatenating the new node) and then close the file, all of this within the PHP script?

I hope I haven't wasted your time with this.

Cheers!

__________________
I do not need a signature

Last edited by mastermode; 11-13-2009 at 05:24 PM.. Reason: grammar nazi
mastermode is offline   Reply With Quote

Sponsored Links (Guests Only) - Register | Need Help?
 

Old 11-14-2009, 03:07 PM   #2
mastermode
Registered User
 
mastermode's Avatar
Um.. Thinking that this was a noob topic, shortly after I posted this I started to document myself, trying to sort out this problem.

And after a not so lengthy search, I came across the simpleXML stuff... and the functions. And I now have a script that modifies an existing XML file

Sorry for posting this, but for people who might bump in this problem, I would like to post the two links that have proven very useful for me:

This is the source of it all: http://www.php.net/manual/en/book.simplexml.php
And this is a concrete example (I used it as a starting point) :http://www.webdeveloper.com/forum/sh...d.php?t=165648

Again, sorry for wasting precious space and time, mods can delete / close this thread, as they wish

__________________
I do not need a signature
mastermode is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 09:58 AM.

SUPPORTERS:

kirupa.com's fast and reliable hosting provided by Media Temple. flash components
Creative web apps. Make your own free flash banners and photo slideshows.
Check out the great, high-quality flash extensions. Buy or sell stock flash, video, audio and fonts for as little as 50 cents at FlashDen.

Flash Transition Effects

Flash Effect Tutorials

Digicrafts Components
Flash effects. Art without coding. Upload, publish, deliver. Secure hosting for your professional or academic video, presentations & more. Screencast.com
Streamsolutions Content Delivery Networks Flipping Book - page flip flash component.
Flash-Gallery.com - Get your flash photo gallery (flash component or swf gallery Learn how to advertise on kirupa.com
 

cdn
content delivery network (cdn)

Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd. Copyright 2010 - kirupa.com Copyright 2010 - kirupa.com