FLASH + PHP = XML
FLASH + PHP = XML
- Started
- Last post
- 3 Responses
- torres
Does anyone know how to submit information to an XML file from Flash using PHP. Something like a pseudo database. I know PHP can be used to generate XML but I haven't figured out how do save that to disk.
Thanks in advance.
- cosmo0
$xml .= "";
$xml .= "someone";
$xml .= "";$fp = fopen("test.xml", "w");
if(!$fp)
{
die('Error cannot create XML file');
}fwrite($fp, $xml);
fclose($fp);
- cosmo0
the xml tags wouldn't show up, but place the xml tags in the $xml variable and it should the file. make sure the folder permission r right.
- Shimshai0
maybe this link can help: http://www.kirupa.com/web/index.… :Sroll down