Hi everyone,
I've been wanting to write to a text file with Flash/PHP and apparantly the code I'm using works. However, someone mentioned something that the reason mine won't work was something to do with CHMOD?
What is that exactly, and how would I go about allowing Flash/PHP to do it's thing, so it can save information to text files?
If you're interested, my Flash and PHP codes are as follows:
Code:myData = new LoadVars(); submit.onRelease = function() { myData.Name = Name.text; myData.sendAndLoad("save.php",myData,"POST"); };
Thanks.PHP Code:<?php
$name = $_POST['Name'];
$toSave ="Name=".$name;
$myfile = fopen("saveLocal.txt","w");
$fp = fwrite($myfile,$toSave);
fclose($myfile);
?>![]()




Reply With Quote