Hi there everyone, my name is Jeff and I have a problem.
I need to save an xml file to the server upon creation in flash app. I'm
sending the xml data via xml class xmlVal.send(url) to a cgi script that would
handle the saving/creation of file on server. I think my problem is in the cgi
script, not sure though. This is the cgi script written in Perl, using 'XML-DOM
mod':
just kidding, apparently I needed to attach it via Attach Code or else it was
loaded with emoticons!
Very simple, I just need to save the file, but it's not working. I know it's
not a problem regarding permissions, I've tested opening/saving xml files by
calling cgi scripts in browsers and that all works. I feel like my problem is
that I'm not reading the sent data correctly in cgi script. Any thoughts,
because I've burn't all my thoughts to carbon bits, so any help would be beyond
appreciation! Thank you so much for your time!
I've attached the Perl code to this message.
Jeff
#!/usr/bin/perl
use XML::DOM;
my $parser = new XML::DOM::Parser;
$input = <STDIN>;
my $doc = $parser->parsefile ($input);
$doc->printToFile ("test30.xml");