Forum Moderators: coopster & phranque

Message Too Old, No Replies

Registerfly mail prog location form.pl config

         

bayala13

10:00 pm on Oct 29, 2005 (gmt 0)

10+ Year Member



Can someone tell me how to config my formailer.pl file for the correct location? They will not reply to e-mails and I have the form on the website page pointing to the correct location of the .pl file but the .pl needs to be told where or what to use to process the inputs....I think, ...pretty new at this.

Thanks in advance

[edited by: coopster at 3:00 pm (utc) on Oct. 31, 2005]
[edit reason] removed hosting-specifics [/edit]

bayala13

6:15 pm on Oct 30, 2005 (gmt 0)

10+ Year Member



No luck on the phone...he referred me to e-mail the customer support because he did not know the answer. I asked where do I direct my formail.pl for processing and e-mailing the form contents....Is this the correct answer I should be asking or is there a better way to phrase it? It is currently set to /cgi/lib/mailserver with another hoster and it does fine.

Thanks for any info

KevinADC

7:57 pm on Oct 30, 2005 (gmt 0)

10+ Year Member



I don't know what you mean by the location. Scripts generally need paths to machine locations, such as the root directory of the server or the path to the cgi-bin. These are machine paths, not URL's. Scripts may also need URLs to display web content. Scripts normally get uploaded to the cgi-bin folder, and have the permission (chmod) set to 755 (linux/unix servers, I think you already know how to do that it sounds like).

This might help. If you can get a script to run in the cgi-bin this little script can tell you information about the server setup:


#!/usr/bin/perl
print "Content-type: text/html\n\n";
foreach $key (sort keys(%ENV)) {
printf("<font color=red>%-10.20s:</font> <font color=blue><b>$ENV{$key}</b></font><br>", $key);
}
exit;

you will see things such as:

DOCUMENT_ROOT: (this is the path to your www root folder)

and othe ENV variables. sendmail is usually:

/usr/lib/sendmail

but can be different.

check around on your host for the common paths you need to use in your cgi scripts, they generally have a listing somewhere to show where sendmail, time, and other applications are that you may need to access.

[edited by: coopster at 2:58 pm (utc) on Oct. 31, 2005]
[edit reason] removed hosting-specific comments [/edit]