# Variable from Php to Flash

**URL:** https://forum.kirupa.com/t/variable-from-php-to-flash/29401
**Category:** Uncategorized
**Created:** [August 26, 2003, 1:54pm UTC](https://forum.kirupa.com/t/variable-from-php-to-flash/29401 "2003-08-26T13:54:30Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![wildC](https://avatars.discourse-cdn.com/v4/letter/w/67e7ee/32.png) [@wildC](https://forum.kirupa.com/u/wildC)
#### Post date: [August 26, 2003, 1:54pm UTC](https://forum.kirupa.com/t/variable-from-php-to-flash/29401/1 "2003-08-26T13:54:30Z")

</div>

Hi everone:)

I have trouble passing a variable from a php script to flash…  
example…

\<?php

echo “path=members.lycos.nl/0125.jpg”;

?\>

## Flash

## loadVariablesNum(“[http://members.lycos.nl/temp.php](http://members.lycos.nl/temp.php)”, 0, “GET”); loadMovieNum(path, 0);

It doesn’t work…can someone tell me whats wrong with this picture???

WildC 👽

---

<div class="post-metadata">

### Author: ![system](https://canada1.discourse-cdn.com/flex011/uploads/kirupa/original/3X/6/2/621e5c11736f46532526e61be85940af4230f3e5.png) [@system](https://forum.kirupa.com/u/system)
#### Post date: [August 26, 2003, 2:42pm UTC](https://forum.kirupa.com/t/variable-from-php-to-flash/29401/2 "2003-08-26T14:42:40Z")

</div>

In flash you need the quotation marks to come through as well. If your path comes through, your as will look like this in flash:

```auto

loadMovieNum(members.lycos.nl/0125.jpg, 0);

```

and I don’t think that would work. I’m assuming you’re using php because that URL is going to be changing. Maybe you should just use the filename in your PHP script instead of the whole path like:

```auto

loadMovieNum("http://members.lycos.nl/"+path+".jpg", 0);

```

Then in your PHP script have:

```php

echo "path=0125";
//or
print "path=".$variable;

```

That’s my guess.
