Home   Web Hosting   Support   Contents   Search

Perl

FAQ   Standard  Deluxe    Mammoth   Policies

Perl is CGI scripting software to allow you to write custom scripts for your server. If you need Perl activated for your account, please contact   support@Lofthouse.com

Each script should start with a line telling where Perl is located, such as:

#!/usr/bin/Perl
#!/usr/local/bin/Perl

#!/usr/bin/Perl   =   Perl version 4
#!/usr/local/bin/Perl   =  Perl version 5

Before you can execute a script, you need to make it executable. You can do this through iManager (see setup instructions), or some FTP program, such as WS_FTP. We recommend chmod to 755 (rwxr-xr-x)

If you need access to the server's error logs please ask the Support@Lofthouse.com   to tell you where to find them.

You should edit your files with a Unix aware word processor or scripting tool, and upload them to the server in ASCII format. This is because the DOS CR/LF combination is not compatible with Perl. This problem usually manifests itself with the "Script Error" message. WordPad will typically work well as an editing tool, so long as you always save as text, and always transfer the file in ASCII format. If the script does stop working, due to DOS end of line characters, it can often be rescued by saving in RTF format, reopening, and then saving as text only.

If there is something wrong in the script such as forgetting a semi-colon at the end of a line that requires it, or using improper syntax, the script will die. Check the error log for reasons.

Scripts often require the complete UNIX path to the file. The path was included in your server configuration letter, if you need it again, please ask Support@Lofthouse.com

Home   Web Hosting   Support   Contents   Search