Friday, July 31, 2009

How would you connect a perl script to a website?

ok.i have a dell windows xp.i use cable as my internet..and it is a desktop too..well i want to connect this perl script to a website and if i need a program or software..let me know the name or website were i can download it..

How would you connect a perl script to a website?
To run perl scripts on your local machine then you will need to download and install a perl server.





A free one is available at :


http://www.wampserver.com/en/





You will also need the activestate perl add-on:


http://www.wampserver.com/en/add-ons.php





After installing both of these you will be able to run perl scripts - check the wamp help files for where to put the perl files.





Another option is to upload the perl files to an external webserver. If you have one of these you will usually need to put the perl files in the CGI-BIN
Reply:To clarify the above response, "cgi-bin" is a folder that a web host typically allows Perl scripts to run in. The thing you should really look for is whether or not your web host supports Perl CGI, so contact them first. If they say yes, then you will need to do two things:


1. Figure out where these Perl scripts can execute, which should typically be in the cgi-bin folder.


2. Set the correct permissions on the file. If you have FTP or shell access, poke around until you find some place that allows you to change the file's attributes (sometimes listed as "properties"). In there, should have an option to set the eXecute permissions.
Reply:To run a perl script on a website you need a cgi-bin directory on your webserver.


No comments:

Post a Comment