Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact

Related technical and longer articles
Making all your .html files run a Perl script
Tips and short articles on this subject
Uploading and Downloading files - changing names (Perl and PHP)
Updating a page strictly every minute (PHP, Perl)
Passing GET parameters through Apache mod_rewrite
Simple but rugged form handling demo
Well House Consultants
You are on the site of Well House Consultants who provide Open Source Training Courses and business hotel accommodation. You are welcome to browse and use our resources subject to our copyright statement and to add in links from your pages to ours.
Other subject areas - resources
Java Resources
Well House Manor Resources
Perl Resources
Python Resources
PHP Resources
Object Orientation and General topics
MySQL Resources
Linux / LAMP / Tomcat Resources
Well House Consultants Resources
Extras Resources
C and C++ Resources
Ruby Resources
Tcl/Tk Resources
Web and Intranet Resources
Perl module P406
More CGI Programs and Facilities
Exercises, examples and other material relating to training module P406. This topic is presented on public course Using Perl on the Web

Using Perl on the Web - CGI, mod-Perl, and other standards. Sessions, cookies, content management, etc. This advanced course takes the Perl programmer ...
http://www.wellho.net/course/pwfull.html  [course]
If you're using Apache mod_rewrite to redirect a series of URLs to a single script, did you know that you can pass values entered onto a form via the ...
http://www.wellho.net/mouth/1009_Pas ... write.html  [short article]
When you are uploading a file to a server via http (in Perl or PHP), where is the file saved, and what is it called? And when you download a file, where ...
http://www.wellho.net/mouth/2321_Upl ... -PHP-.html  [short article]
For the Clock exercise that I mentioned in my last entry, I need to update the page once a minute. Exactly once a minute. At the start of the minute. ...
http://www.wellho.net/mouth/1187_Upd ... Perl-.html  [short article]
div class= introsubheads A RECIPE FOR DYNAMIC WEBSITES WITH PERL BR /div or how to turn all .html URLs in a directory into dynamic pages via CGI ...
http://www.wellho.net/solutions/perl-mak ... cript.html  [longer article]
There are some weeks (OK - MOST weeks!) where I have great fun during training course writing examples in front of the class that help with their application ...
http://www.wellho.net/mouth/641_Simp ... -demo.html  [short article]
#!/bin/perl -- -*-perl-*- # Download a file read (STDIN,$buffer,$ENV{'CONTENT_LENGTH'}); @pairs = split(/&/,$buffer); foreach $entry (@pairs) ...
http://www.wellho.net/resources/ex.php4?item=p406/down.pl  [code sample]

The extra facilities of CGI, things that you'll need from time to time but probably won't use on a daily basis. Learn how to upload and download files, how to email from the server, how to recognise which browser your client is using, and how to return a page that automatically moves on to a second response page a few seconds later.

This topic is presented on public course Using Perl on the Web

Examples from our training material
down.pl   Download a file off the server
mailer.pl   Emailing and working out the browser type
nph-clock.pl   Multipart and updating CGI document
up.cgi   CGI script to receive uploaded file
up.html   Form for uploading a file
upfile.html   Uploading a file (live demo)
upsend.cgi   CGI script to receive and display uploaded file
useredit.pl   Edit a file all on one page!
utils.pm   Utilities for CGI
winmailer.pl   emailing from Perl on a Windows box
Background information
This module is available under an Open Training Notes License for free download from http://www.training-notes.co.uk.
Topics covered in this module
Automatic emailing; recognising the browser.
Uploading and downloading files.
Multi part documents.
Server Push.
Client pull.
Server Side Includes.
Server Side Include Syntax.
Include commands.
Executable content in CGI.
Complete learning
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule page.

Well House Consultants specialise in training courses in Python, Perl, PHP, and MySQL. We run Private Courses throughout the UK (and beyond for longer courses), and Public Courses at our training centre in Melksham, Wiltshire, England. It's surprisingly cost effective to come on our public courses - even if you live in a different country or continent to us.

We have a technical library of over 700 books on the subjects on which we teach. These books are available for reference at our training centre. Also available is the Opentalk Forum for discussion of technical questions.


You can Add a comment or ranking to this page

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 01144 1225 708225 • FAX: 01144 1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho