php-general | 2000071
Date: 07/13/00
- Next message: Nold, Mark: "[PHP] RE: Sessions not propagated through different hosts - *Urgent!*"
- Previous message: John Coggeshall: "RE: [PHP] Re: A question not to sockhead but HTTPS ..."
- In reply to: Keith Laidman: "[PHP] (newbie) Flash->PHP->.txt?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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 <email protected>
> For additional commands, e-mail: php-general-help <email protected>
> To contact the list administrators, e-mail: php-list-admin <email protected>
>
>
>
Hans Anderson ~ me <email protected>
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.
-- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: php-general-unsubscribe <email protected> For additional commands, e-mail: php-general-help <email protected> To contact the list administrators, e-mail: php-list-admin <email protected>
- Next message: Nold, Mark: "[PHP] RE: Sessions not propagated through different hosts - *Urgent!*"
- Previous message: John Coggeshall: "RE: [PHP] Re: A question not to sockhead but HTTPS ..."
- In reply to: Keith Laidman: "[PHP] (newbie) Flash->PHP->.txt?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

