Exercises, examples and other material relating to training module P403. This topic is presented on public courses Deploying LAMP - Linux, Apache, MySQL, Perl/PHP
, Linux Web Server
, Using Perl on the Web
Applications often interface to the web through "CGI" Ð the Common Gateway Interface. This module introduces the fundamentals of CGI and how it's used within server-based Perl programs, taking special care to cover issues such as the security of the inputs and the handling and checking of data no matter what the user of your publicly visible website should enter.
|Articles and tips on this subject
|Perl and CGI - simple form, and monitoring script.
In some ways, Perl and CGI (Common Gateway Interface) is "old hat", but some times it's still just what you need.
Over the last couple of days, I've been working with Perl, with a customer for an intermediate tutorial session on some aspects of the language such as Object Orientation and Regular Expressions, ...
|Teaching examples in Perl - third and final part
Three part article ... this is part 3. Jump back to part  
Following on from two earlier posts, here is the final third of the new examples that I wrote during last week's Perl course, and to which I have added extra documentation over the last couple of days.
P212 More on Character Strings
|Perl and the Common Gateway Interface - out of fashion but still very useful?
Is the Common Gateway Interface dead? No - it isn't; although my first choice for a new web application these days would be something else (PHP, Java with Servlets, JSPs or a derivative, Python with Django, Ruby with Rails ...), there are often times that I'll have a bit of code that I've run away ...
|Handling nasty characters - Perl, PHP, Python, Tcl, Lua
Are your writing or maintaining a web based application that uses forms? If so, you have better be aware of some of the nasty characters that are around!
The < character, when echoed back from a users's input 'unchallenged', may form the start of a tag. So that in a relatively benign case, a user ...
|CGI v mod_perl
Just debunking a couple of myths today ...
CGI (Common Gateway Interface) scripts are run on a web server computer under the control of a piece of web server software (typically Apache httpd), but as separate processes. This means that each time a script is called up, it has to be translated from the ...
Examples from our training material
PicturesCGI scripting practical
Some modules are available for download
as a sample of our material or under an Open Training Notes License
for free download from [here]
Topics covered in this module
The mechanism of the web.
The need for Server Side Programming.
The structure of the server.
Your first CGI program.
Use perl -c.
Check with your ISP.
If you are looking for a complete course and not just a information on a single subject, visit our Listing and schedule
Well House Consultants specialise in training courses in
. We run
throughout the UK (and beyond for longer courses), and
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.