Re: (newbie) Flash->PHP->.txt?

From: Date: Fri, 14 Jul 2000 00:29:32 +0000
Subject: Re: (newbie) Flash->PHP->.txt?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-6587@lists.php.net to get a copy of this message
Hello Keith, I am the opposite of you, a bit anyway. I've used Flash quite a bit, but more PHP. Anyway, I've done quite a bit with the two of them in the last few months. The first thing you need to be sure of is that you are sending the variable as you think you are. If you are using GetURL (in Flash), send the variables using GET, to start anyway. This way, you can see the resulting URL, it should have the 'color' variable in the Query String. You really don't even need to have the PHP script working to make sure this is going well. Send them to any page, though that page won't be able to do anything useful with the variable. Once you are sure that you have that part right, you can implement your script, which looks pretty good. At first, you might just try echoing the variable, so see if it works. Something like this in a PHP page: <?php echo $color; ?> is all you need. Let me know if you have any more questions. I'd like to help as best I can, because the first week of Flash/PHP was fairly frustrating. I've found a few tricks that are mostly undocumented in passing variables to and from Flash. The new Action Scripting is nice, but PHP is much stronger as a language to program in. Hans On Thu, 13 Jul 2000, Keith Laidman wrote: > Hi... > > I'm a longtime Flash developer who is just starting to explore server-side > scripting as a means of extending Flash's capabilities. I have a problem > which I'm sure is incredibly simple, but I don't have enough knowledge of > PHP to figure it out. Inside my flash movie is a user-defined variable > ("color"). What I need is a php script that, when a submit button is > clicked, will receive the flash variable and write it to a .txt file as > color=value. I think I need something along these lines, but I'm really just > flailing here... > > <?php > > $data="flash.txt"; > > $fp= fopen($data, "w+"); > $fw= fwrite($fp,$color); > fclose($fp); > > ?> > > Any help would be greatly appreciated... > > K. > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net > > > Hans Anderson ~ me@hansanderson.com PO Box 426, Missoula, MT 59806 | PHP, Search Engines, SQL (800)397-9116 / (406)549-6524 | Databases, Flash Multimedia, http://www.hansanderson.com | Killer Audio Production, http://www.goofiness.com | Minty Fresh Breath.

« previous php.general (#6587) next »