Jump to content

This is the support site for Andrews & Arnold Ltd, a UK Internet provider. Information on these pages is generally for our customers but may be useful to others, enjoy!

Webhosting Perl and CGI Scripts: Difference between revisions

no edit summary
No edit summary
No edit summary
[[File:Couk.png|link=:Category:Webhosting]]
 
 
You can upload any perl scripts to anywhere on your web site. You can make a cgi-bin directory if you like, but scripts can be included anywhere on your web site.
Within the script, the mail program used for sending mail is /usr/lib/sendmail . You should not use this with the -t argument (which find the From and To in the email) but use -f 'from-email-address' 'to-email-address' in place of the -t argument.
 
A simple mailer is available - see below.[[Webhosting_Form_Mailer]]
 
There are various perl scripts available on the internet, and many books on the subject. You do not have access to php or mysql on the server, and you may have to change the use of sendmail as above.
 
==Environment Variables ==
 
Your scripts have access to the following environment variables :-
{| class="wikitable"
| QUERY_STRING
| The query string (bit after the ? in the URI)
URI)
|-
| PATH_INFO
autoreview, Bureaucrats, editor, Interface administrators, reviewer, Administrators
12,290

edits