# Error in your tutorial

**URL:** https://forum.kirupa.com/t/error-in-your-tutorial/61901
**Category:** Uncategorized
**Created:** [August 23, 2004, 6:56am UTC](https://forum.kirupa.com/t/error-in-your-tutorial/61901 "2004-08-23T06:56:40Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![meatcake](https://avatars.discourse-cdn.com/v4/letter/m/d2c977/32.png) [@meatcake](https://forum.kirupa.com/u/meatcake)
#### Post date: [August 23, 2004, 6:56am UTC](https://forum.kirupa.com/t/error-in-your-tutorial/61901/1 "2004-08-23T06:56:40Z")

</div>

your tutorial at this link:

[http://www.kirupa.com/developer/mx/hitcounter.htm](http://www.kirupa.com/developer/mx/hitcounter.htm)

there’s a line of actionscript in it that looks like this:

**this.loadVariables(“counter.php?num=”+random(99));**

Now, after 2 years of actionscripting, this line looked funny to me, but I did the tutorial anyway and sure enough flash says  
"ERROR opening Url :“counter.php?num=”

Since the ‘num’ isn’t anywhere in the tutorial I thought maybe you meant  
‘?count=’ so I tried that.

But that’s not where the problem lies. Suggestions please?

---

<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 23, 2004, 7:45am UTC](https://forum.kirupa.com/t/error-in-your-tutorial/61901/2 "2004-08-23T07:45:21Z")

</div>

No that line should work, the “num” is there just to keep the loaded file fresh ever ytime it is loaded, to make sure itäs not loaded from the browser’s cache. (the chance here is 1 out of 99)

Now I’m not sure about how your flash and the handling of server side scripts is set up.  
If you have been able to load php files through flash before then I don’t know what the problem could be.  
But if u haven’t tried anything liek this b4 then I believe it’s how your flash is set up. I personally never test server side interactivity through flash, I have my own apache server set up so i can’t help ya there…

---

<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 23, 2004, 10:34am UTC](https://forum.kirupa.com/t/error-in-your-tutorial/61901/3 "2004-08-23T10:34:59Z")

</div>

it wont work from your hard drive; you need to test it on a server
