Click to See Complete Forum and Search --> : Novice Forms


hooloovoo24
03-30-2005, 01:19 PM
http://www.noviceforms.com/

I want to use this script for my form on my site, but I don't know anything about it. In the readme file, it says:
Firstly make sure the path to perl is correct.
(THIS IS LOCATED ON THE VERY FIRST LINE OF THE nvform.cgi script.)
By default it is set to: #!/usr/bin/perl
And already, I'm lost. What the heck does that mean, and how do I know what the path the perl is?

CyCo
03-30-2005, 04:39 PM
Generally, the path will be:

#!/usr/bin/perl

or

#!/usr/local/bin/perl

Your host can provide you with the exact path.

hooloovoo24
03-31-2005, 12:32 PM
OK...now it says
Enter the path to sendmail on your server.
Example:
$mailprog = "/usr/lib/sendmail";
So is this kind of the same thing as the perl one? Is that generally where it is located, and do I need to ask my host for the answers instead of you good people?

CyCo
04-01-2005, 10:08 AM
Yes, your host wiil be able to provide that, also.

leocharre
04-15-2005, 10:15 PM
Better yet, ask for ssh access.
$which sendmail
will tell you what the path is to what you want,
$which perl
will give you path to perl binary

See, a cgi is not necessarily perl. It can be C, or sh, or perl... The first line tells the server what to run your code through.. Byt itself, the cgi script is just text. the server uses it as instructions for something or other.
Sometimes you don't want perl, sometimes you want sh.. believe it.
Anyway, use "putty" (google it) to interact with the server via ssh.