# Flash PHP

**URL:** <https://forum.kirupa.com/t/flash-php/22877>\
**Category:** flash\
**Created:** [June 10, 2003, 1:30am UTC](https://forum.kirupa.com/t/flash-php/22877 "2003-06-10T01:30:11Z")\
**Posts on this page:** 11\
**Page:** 1

<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:** [June 10, 2003, 1:30am UTC](https://forum.kirupa.com/t/flash-php/22877/1 "2003-06-10T01:30:11Z")

</div>

Hey all,

cant seem to get this to work, not sure why. I am following a kirupa tute which reads php file. Here is my code.

test.php:

```php

<?php
$x = "abc";
print $x;
print "myVar=$x";
?>

```

test.fla

on my movie clip which contains a dynamic text field called “myVar”

[AS]  
onClipEvent (load) {  
loadVariables(“[http://localhost/exp/bookorama/test.php](http://localhost/exp/bookorama/test.php)”, this, “GET”);  
}  
[/AS]

Please help 🙂 and thanks

---

<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:** [June 10, 2003, 1:36am UTC](https://forum.kirupa.com/t/flash-php/22877/2 "2003-06-10T01:36:53Z")

</div>

the way you have the script set up outputs a variables called ‘abcmyVar’ (the print $x line)… try this

```php
<?php
$x = "abc";
print $x;
print "&myVar=$x";
?>

```

---

<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:** [June 10, 2003, 1:40am UTC](https://forum.kirupa.com/t/flash-php/22877/3 "2003-06-10T01:40:10Z")

</div>

dang, no still not working, any more ideas? possibly file permissions? i set full permissions just test.

---

<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:** [June 10, 2003, 1:48am UTC](https://forum.kirupa.com/t/flash-php/22877/4 "2003-06-10T01:48:26Z")

</div>

try this…

```auto
onClipEvent (load) {
        loadVariables("http://localhost/exp/bookorama/test.php", this);
}

```

and… are you sure the variable ‘myVar’ is placed IN that movieclip? 🙂

---

<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:** [June 10, 2003, 1:53am UTC](https://forum.kirupa.com/t/flash-php/22877/5 "2003-06-10T01:53:31Z")

</div>

yes im sure the vaiable is myVar. this still doesn’t work. i’m boggled.

if you get a chance my source files are here:  
[http://digitalosophy.com/exp/bookorama/test.zip](http://digitalosophy.com/exp/bookorama/test.zip)

thanks again man im goin nuts

---

<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:** [June 10, 2003, 2:05am UTC](https://forum.kirupa.com/t/flash-php/22877/6 "2003-06-10T02:05:36Z")

</div>

i don’t really have anytime right now, i’ll see them as soon as i get to ;(

---

<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:** [June 10, 2003, 2:10am UTC](https://forum.kirupa.com/t/flash-php/22877/7 "2003-06-10T02:10:53Z")

</div>

thank you very much

---

<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:** [June 10, 2003, 4:12pm UTC](https://forum.kirupa.com/t/flash-php/22877/8 "2003-06-10T16:12:14Z")

</div>

Wut up holmes?

In the fla file you put in the zip you had the text box named “Name”

But you named the variable in the PHP file “myVar”

If they matched then it would work fine…

File in Action: [http://www.bluefinatlantic.com/egTest/test.html](http://www.bluefinatlantic.com/egTest/test.html)

Zip file: [http://www.bluefinatlantic.com/egTest/DigFix.zip](http://www.bluefinatlantic.com/egTest/DigFix.zip)

---

<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:** [June 10, 2003, 4:46pm UTC](https://forum.kirupa.com/t/flash-php/22877/9 "2003-06-10T16:46:43Z")

</div>

lol jubba my man, always comin through when i need him. i was gonna harass you last night late night but i figured i’d give ya a break. thanks a lot man, really i appreciate it. now i can mve on to step 2, grabbing ht info from mysql db.

🙂

talk to ya later mang. 🙂

---

<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:** [June 10, 2003, 4:57pm UTC](https://forum.kirupa.com/t/flash-php/22877/10 "2003-06-10T16:57:34Z")

</div>

yeah no problem. Anytime I am home feel free to IM me. I told you that I am more than happy to help you out. I’m working on a database driven Flash guestbook for a client of mine also… so that should be fun.

They have me working nights now tho, so it might be harder for you to reach me. Usually 5pm - 1am or so, so if you need something just leave an IM and i’ll get back to you when I can.

I’m in the process of looking for another job… something with day shifts…

---

<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:** [June 10, 2003, 5:15pm UTC](https://forum.kirupa.com/t/flash-php/22877/11 "2003-06-10T17:15:26Z")

</div>

cool good luck!
