PDA

View Full Version : [ubuntu] calling a perl in flex.



srijith_bhandary
March 1st, 2011, 11:11 AM
Hi guys,
I am not sure whether I am posting in right place or not.

Ok, I am trying to call a perl code in my flex, and I am referring here (http://www.giantflyingsaucer.com/blog/?p=575&cpage=1#comment-2232) .

I am stuck with running a Perl code in a webpage. I am able to run it in terminal, but not able to run in a webpage.

I did install apache2 and I copied this code in /var/www/perlcode.pl then I tried to open this in web using http://localhost/perlcode.pl but it shows only the perl script and not the output as shown in the reference link.

I have a testing.php in /var/www/ and it works fine when I opned http://localhost/testing.php

I installed LAMP.

I know there is something to do with CGI for this. But I have no idea how to do this.

Any help will be a great advantage for me.

thnks