Getting a script up and running:
- Ask your ISP if you can run Perl CGI scripts on your server. They should also tell you where such scripts should be stored, what extension (.cgi or .pl) they should have, what shebang line (
#!/usr/bin/perl is typical) they should have, and what the URL will be to point to that script.
- Download the script from my site.
- Adapt it as you see fit (make sure the shebang line matches what you found out in step 1)
- Transfer the script to your server via FTP (see pages 408-411 for more details).
- Change the permissions to make the file executable. You can either telnet in to the Unix server, and type
chmod o+rx filename (once you've navigated to the directory that contains the script), or some FTP programs (including Fetch) include options for changing permissions.
- Then, reference the script in the ACTION attribute of your form (see page 269) and you're ready to test it.