Page 1 of 1

Collating txt file variables ?

Posted: Mon Jul 15, 2002 7:28 pm
by sodbottles
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.

Posted: Tue Jul 16, 2002 8:08 am
by enygma
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.)