-
madskool.wordpress.com
I thought this would be easy - I've done this so often the other way - but this time needed to calculate some values in a Perl script to pass to flash. I assumed that I just needed to generate the text in perl, that I would normally put in a text file when I do this sort of thing. So this is the test I did:-
mytest.cgi contains:-
#!/usr/bin/perl
use CGI ':standard';
print "banner=hello.swf&userid=123&\n";
and my actionscript contains:-
loadVariables("http://127.0.0.1/cgi-bin/mytest.cgi", this);
I only included this text so you could all see how stupid I am - because it is apparent that I can barking up the wrong tree with this approach!
So, how do I do it?
I apologise most humbly for my emense ignorance.
Daniel
-
__OSX powered__
Have you tried it in a browser??? what is the output there??
put the following in after the #! line:
Code:
print "Content-type: text/html\n\n";
That should do it I think.
What (if) are the errors you get?
-
madskool.wordpress.com
YES!
YES!!!!- oh THANK YOU! it works.
It's 11:10pm here, and I think you've earn't me some sleep. Thanks a lot!
Daniel
-
__OSX powered__
No problems!
11.10pm.... hmm, where are you?? Australia?
In Brisbane myself.
-
madskool.wordpress.com
Adelaide
Adelaide
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|