dreimann
02-11-2007, 11:22 AM
Hi
I whant to send variable to php. I am new in php. So I have simple stupid question. Can I save variable in php file or I need to save it in .txt file as string. I don`t whant to save it on database.
I ask like this becouse tutorials I read has // Printing out the variables. from php ( but I whant to save) or
or save in text file like this
//Open a file in write mode
$fp = fopen("myText1.txt", "w");
if(fwrite($fp, $toSave)) echo "writing=Ok&";
else echo "writing=Error&"
fclose($fp);
but this code don`t work, error in line / fclose($fp); /
I know how to load variable to Flash but there is so few tutorials about send. and each of them are different.
In flash I whant to send a variable from _parent movie and then load variable in _root movie
I am trying to learn using flash and php without xml.
I whant to send variable to php. I am new in php. So I have simple stupid question. Can I save variable in php file or I need to save it in .txt file as string. I don`t whant to save it on database.
I ask like this becouse tutorials I read has // Printing out the variables. from php ( but I whant to save) or
or save in text file like this
//Open a file in write mode
$fp = fopen("myText1.txt", "w");
if(fwrite($fp, $toSave)) echo "writing=Ok&";
else echo "writing=Error&"
fclose($fp);
but this code don`t work, error in line / fclose($fp); /
I know how to load variable to Flash but there is so few tutorials about send. and each of them are different.
In flash I whant to send a variable from _parent movie and then load variable in _root movie
I am trying to learn using flash and php without xml.