Collating txt file variables ?

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
sodbottles
Forum Newbie
Posts: 1
Joined: Mon Jul 15, 2002 7:28 pm

Collating txt file variables ?

Post 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.
User avatar
enygma
Site Admin
Posts: 175
Joined: Fri Apr 19, 2002 8:29 am
Location: Dallas, Tx

Post 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.)
Post Reply