[swx] Flash/SWX/PHP - writing array contents to text file
azsl1326-email at yahoo.com
azsl1326-email at yahoo.com
Thu Sep 20 13:19:44 PDT 2007
I am using Flash, SWX and php to write to a text file. If I pass an array via SWX to php the only value that gets written in the text file is the string 'Array'. However, if I have the contents of the array returned to flash, it returns the correct content. If I change the argument that is passed to a string, it writes correctly to the text file.
Here's the simple php code:
function writeData($val)
{
$fp = fopen('test.txt', "w");
fwrite($fp, $val);
if(fclose($fp))
{
return $val;
}
}
Any ideas?
Thanks for the help.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://osflash.org/pipermail/swx_osflash.org/attachments/20070920/c986773a/attachment.html
More information about the swx
mailing list