# Load .php problem

**URL:** <https://forum.kirupa.com/t/load-php-problem/210000>\
**Category:** Uncategorized\
**Created:** [December 13, 2006, 11:50pm UTC](https://forum.kirupa.com/t/load-php-problem/210000 "2006-12-13T23:50:13Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![ZumoWrestler](https://avatars.discourse-cdn.com/v4/letter/z/f05b48/32.png) [@ZumoWrestler](https://forum.kirupa.com/u/ZumoWrestler)\
**Post date:** [December 13, 2006, 11:50pm UTC](https://forum.kirupa.com/t/load-php-problem/210000/1 "2006-12-13T23:50:13Z")

</div>

Basiclly I’m trying to pull info from a php page on a server and load the echo’d variables.

```auto
var my_lv:LoadVars = new LoadVars();
 my_lv.onLoad = function(success:Boolean) {
  if (success) {
   trace(this.toString());
  } else {
   trace("Error loading/parsing LoadVars.");
  }
 };
 my_lv.load("../[test.php](http://test.php)");
 var queryString:String = my_lv.toString();
 my_lv.decode(queryString);
 trace(my_lv.myVar);

```

There is an exact link in the my\_lv.load() function. Here is my php…

```php
<?php 
 $x = 'Hello World';
echo "myVar=$x";
?>

```

I’ve looked at a bunch of examples and I can’t figure out whats going on. My success code doesn’t even fire, or it is pulling back nothing so it is undefined. I tried it with a .txt file and just put in the txt file “myVar=Hello World” and that still didn’t work. Thanks for the help guys!
