RE: [Flashcoders] Need help from PHP coder

2006-11-10 Thread Pete Miller
Thanx to everyone for the input.  It was the $HTTP_RAW_POST_DATA item that I 
was unaware of.

P.

 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Chester McLaughlin
 Sent: Thursday, November 09, 2006 8:27 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Need help from PHP coder
 
 Here's a very simple example I got working
 
 1) create php file called saveXML.php
 2) create xml file called myxml.xml
 3) make sure php can write to myxml.xml file
 
 
 // START ACTIONSCRIPT
 
 var null_xml:XML = new XML();
 var my_xml:XML = new XML(nodechildchester/child/node);
 my_xml.contentType = text/xml;
 
 // Send to a specific HTML window (_blank, _self, _top, etc);
 //my_xml.send(saveXML.php,_self);
 
 // Send in the background
 my_xml.sendAndLoad(saveXML.php,null_xml);
 
 // END ACTIONSCRIPT
 
 ! -- START PHP --
 
 ?
 $fp=fopen(myxml.xml,w);
 fwrite($fp,$HTTP_RAW_POST_DATA);
 fclose($fp);
 ?
 
 ! -- END PHP --
 
 
 On Nov 9, 2006, at 2:49 PM, Pete Miller wrote:
 
 
  Learn PHP is still on my to-do list, and now I'm fumbling my way
  through a few simple PHP scripts.  I simply want to send an XML object
  to a PHP script that will write it to the server.  What PHP function
  will catch the end result of a XML.send() function?  No need for too
  many details, I'll read up on it, but if someone could name the proper
  function?
 
  Thanx,
 
  P.
  ___
  Flashcoders@chattyfig.figleaf.com
  To change your subscription options or search the archive:
  http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
  Brought to you by Fig Leaf Software
  Premier Authorized Adobe Consulting and Training
  http://www.figleaf.com
  http://training.figleaf.com
 
 
 This email and any files transmitted with it are confidential and
 intended solely for the use of the individual or entity to whom they are
 addressed.  If you are not the named addressee you should not
 disseminate, distribute or copy this e-mail  Please notify the sender
 immediately by e-mail if you have received this e-mail by mistake and
 delete this e-mail from your system.  Any other use, retention,
 dissemination, forwarding, printing or copying of this e-mail is strictly
 prohibited.  Finally, the recipient should check this e-mail and any
 attachments for the presence of viruses.  Lambesis accepts no liability
 for any damage caused by any virus transmitted by this email.
 
 ___
 Flashcoders@chattyfig.figleaf.com
 To change your subscription options or search the archive:
 http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
 
 Brought to you by Fig Leaf Software
 Premier Authorized Adobe Consulting and Training
 http://www.figleaf.com
 http://training.figleaf.com
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Need help from PHP coder

2006-11-09 Thread Rich Rodecker

there is a native php function, but i dont remember it, but you may want to
take a look at the DOMIT class.

On 11/9/06, Pete Miller [EMAIL PROTECTED] wrote:



Learn PHP is still on my to-do list, and now I'm fumbling my way
through a few simple PHP scripts.  I simply want to send an XML object
to a PHP script that will write it to the server.  What PHP function
will catch the end result of a XML.send() function?  No need for too
many details, I'll read up on it, but if someone could name the proper
function?

Thanx,

P.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Need help from PHP coder

2006-11-09 Thread Scott Haneda
 Learn PHP is still on my to-do list, and now I'm fumbling my way
 through a few simple PHP scripts.  I simply want to send an XML object
 to a PHP script that will write it to the server.  What PHP function
 will catch the end result of a XML.send() function?  No need for too
 many details, I'll read up on it, but if someone could name the proper
 function?

I don't think you need any special php function:

I don't know anything about flash, but I would guess XML.send() takes a file
name, or server path as a argument, so put this in that file:

$fp=fopen(myxml.xml,wb);
fwrite($fp,$HTTP_RAW_POST_DATA);
fclose($fp);
echo Done saving;
-- 
-
Scott HanedaTel: 415.898.2602
http://www.newgeo.com Novato, CA U.S.A.


___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


Re: [Flashcoders] Need help from PHP coder

2006-11-09 Thread Chester McLaughlin

Here's a very simple example I got working

1) create php file called saveXML.php
2) create xml file called myxml.xml
3) make sure php can write to myxml.xml file


// START ACTIONSCRIPT

var null_xml:XML = new XML();
var my_xml:XML = new XML(nodechildchester/child/node);
my_xml.contentType = text/xml;

// Send to a specific HTML window (_blank, _self, _top, etc);
//my_xml.send(saveXML.php,_self);   

// Send in the background
my_xml.sendAndLoad(saveXML.php,null_xml);

// END ACTIONSCRIPT

! -- START PHP --

?
$fp=fopen(myxml.xml,w);
fwrite($fp,$HTTP_RAW_POST_DATA);
fclose($fp);
?

! -- END PHP --


On Nov 9, 2006, at 2:49 PM, Pete Miller wrote:



Learn PHP is still on my to-do list, and now I'm fumbling my way
through a few simple PHP scripts.  I simply want to send an XML object
to a PHP script that will write it to the server.  What PHP function
will catch the end result of a XML.send() function?  No need for too
many details, I'll read up on it, but if someone could name the proper
function?

Thanx,

P.
___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com



This email and any files transmitted with it are confidential and intended 
solely for the use of the individual or entity to whom they are addressed.  If 
you are not the named addressee you should not disseminate, distribute or copy 
this e-mail  Please notify the sender immediately by e-mail if you have 
received this e-mail by mistake and delete this e-mail from your system.  Any 
other use, retention, dissemination, forwarding, printing or copying of this 
e-mail is strictly prohibited.  Finally, the recipient should check this e-mail 
and any attachments for the presence of viruses.  Lambesis accepts no liability 
for any damage caused by any virus transmitted by this email.

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com


RE: [Flashcoders] Need help from PHP coder

2006-11-09 Thread Mike Keesey
 -Original Message-
 From: [EMAIL PROTECTED] [mailto:flashcoders-
 [EMAIL PROTECTED] On Behalf Of Scott Haneda
 Sent: Thursday, November 09, 2006 5:26 PM
 To: Flashcoders mailing list
 Subject: Re: [Flashcoders] Need help from PHP coder
 
 I don't think you need any special php function:
 
 I don't know anything about flash, but I would guess XML.send() takes
a
 file
 name, or server path as a argument, so put this in that file:
 
 $fp=fopen(myxml.xml,wb);
 fwrite($fp,$HTTP_RAW_POST_DATA);
 fclose($fp);
 echo Done saving;

Yup. You have to make sure of a certain setting in php.ini, though. I
can't remember which one it is, but you can probably find out at:
http://php.net
―
Mike Keesey

___
Flashcoders@chattyfig.figleaf.com
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com