Hi -
I have a number of txt files that php scripts write variables to, then a Flash movie reads all files, and displays the info..
Is there a simple php script that I could implement, that would read all the variables upon execution, then either have those vaiables readable directly by the movie, or write the list of variables to a new txt file ?
Any suggestions gratefully received.
Thanks,
Mike.
Collating txt file variables ?
Moderator: General Moderators
-
sodbottles
- Forum Newbie
- Posts: 1
- Joined: Mon Jul 15, 2002 7:28 pm
just fopen the file or soemthing and then use the loadVariables() function in ActionScript (or whatever that one's called that grabs an external source) and it'll assign the varaibles for you....
just have the PHP script output something like:
var1=foo&var2=bar&var3=baz
and so on....in the correct url formatting (use urlencode in PHP for this.)
just have the PHP script output something like:
var1=foo&var2=bar&var3=baz
and so on....in the correct url formatting (use urlencode in PHP for this.)