# \[php\] baffling undefined variables problem :( please test my site

**URL:** <https://forum.kirupa.com/t/php-baffling-undefined-variables-problem-please-test-my-site/186046>\
**Category:** programming\
**Created:** [April 18, 2006, 5:32pm UTC](https://forum.kirupa.com/t/php-baffling-undefined-variables-problem-please-test-my-site/186046 "2006-04-18T17:32:19Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![mawooshen](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@mawooshen](https://forum.kirupa.com/u/mawooshen)\
**Post date:** [April 18, 2006, 5:32pm UTC](https://forum.kirupa.com/t/php-baffling-undefined-variables-problem-please-test-my-site/186046/1 "2006-04-18T17:32:19Z")

</div>

I’ve got a bit a general troubleshooting question for all you php/flash gurus out there…

here’s my problem:

I’ve recently updated my site with a database and some php. The flash movie retrieves 16 links from a database and puts them in an array.(thanks to some pointers from members of Kirupa)

And so far so good. The site is up at [www.mawoosh.com](http://www.mawoosh.com) and so far has worked perfectly for me everytime.

However I’ve had a baffling report of the site not working recently.

As far as I can tell, the user is getting an “ **undefined** ” error instead of the links in the array. It seems that she is getting the same problem everytime and cannot get the site to work properly…

I know this is very vague, but what I don’t understand is **how can the same site work for me and a lot of other people, but return undefined variables for one user?!**

Could this be a problem with the flash version?  
But the swf is published with flash detection for flash player 7, so I don’t see how that could be a problem, she wouldn’t be able to see the page at all if she didn’t have flash 7…

**Does anyone have any ideas, however unlikely as to what kind of thing could cause such a situation!**

I’m also a little worried that this might be happening more often, so **I’d be really grateful if people could test visit the site and click on a few of the dots there.** The dots are linked to external sites and a few holding pages. If an actual website comes up rather than [www.mawoosh.com/undefined](http://www.mawoosh.com/undefined) not found error then all is good. (dont worry this isn’t some really convoluted way to get extra traffic, trust me!:P)

wow, long post, hope people made it to the end! I put the important bits in bold for those on a tight schedule!

Thanks a lot for your help!

---

<div class="post-metadata">

**Author:** ![mawooshen](https://avatars.discourse-cdn.com/v4/letter/m/3da27b/32.png) [@mawooshen](https://forum.kirupa.com/u/mawooshen)\
**Post date:** [April 20, 2006, 12:13am UTC](https://forum.kirupa.com/t/php-baffling-undefined-variables-problem-please-test-my-site/186046/2 "2006-04-20T00:13:50Z")

</div>

Ha ha! Worked out the answer! The lady who couldn’t get my site to work was visiting me at [http://mawoosh.com](http://mawoosh.com) as opposed to [www.mawoosh.com](http://www.mawoosh.com).

I’ve just realised that all my links and addresses are relative ones, so the swf couldn’t find the php page and retrieve the correct variables. I should change that.
