Solved

perl.pl to perl.exe

Posted on 1997-08-09
3
562 Views
Last Modified: 2013-12-25
Dear Experts

  I am developing a cybermall website with plenty of
cgi scripts to handle forms inputs.The  cgi scripts
are witten in perl language .I have just downloaded
the perl  interpreter (compiler) from the web .My questions:

1) Do I have to upload the whole perl interpreter(almost two megabytes) to my internet service provider',s server ? The perl source code has *.pl extention and therefore to run them one should write" perl.exe program.pl",can't I just make them exe and upload them without uploading the interpreter itself to the server?.

2) In either ways, what should the html "action" tag (when submiting the form ) look like in order to call the perl script(program.pl),given that  my files are located in http://host/mydirectory,should it be
 action=http://host/mydirectory/perl.exe program.pl
or should it be action=http://host/mydirectory/program.exe
or should it be action=http://host/mydirectory/program.cgi ,and in the later case how do i convert program.pl to program.cgi?

Thank you for your patience and support
fadi
0
Comment
Question by:fadih
  • 2
3 Comments
 
LVL 7

Accepted Solution

by:
faster earned 200 total points
Comment Utility
1) The server must install Perl.
2) the action should be action=http://host/mydirectory/program.pl.

There are some config you need to do on the server, this depends on what kind of the server your service provider is using.  If WinNT with information server, the admin should create a shell cgi directory and put your pl scriplts there.  Actaully, unless your service provider and you are from the same company, otherwise it is unlikely that they will allow you to install perl.  But probably they already have perl installed and then you just need to copy your scripts to the right place (assume that the ISP allow you to do so).

Good luck.
0
 

Author Comment

by:fadih
Comment Utility
Good answer faster but what about scripts with cgi extention
like program.cgi where do they fit; in the action tag or somewere else?
0
 
LVL 7

Expert Comment

by:faster
Comment Utility
It is the same (extension is just extension).  If you are using windows NT server, then you need to associate .cgi with perl.exe (perl installation program will associate .pl with perl.exe automatically, unless you use .cgi as the default extension for perl scripts).  If you are not using perl, i.e. the .cgi is itself an exe, then you need to do nothing, jut put the cgi in common cgi directory (not shell cgi), provided it is information server.  On unix you need not do this, the first line will tell unix where to get perl.
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
It is a general practice to get rid of old user profiles on a computer  in a LAN environment. As I have been working with a company in a LAN environment where users move from one place to some other place at times. This will make many user profil…
This tutorial will teach you the core code needed to finalize the addition of a watermark to your image. The viewer will use a small PHP class to learn and create a watermark.
In this fourth video of the Xpdf series, we discuss and demonstrate the PDFinfo utility, which retrieves the contents of a PDF's Info Dictionary, as well as some other information, including the page count. We show how to isolate the page count in a…

743 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now