Exercises, examples and other material relating to training module P406. This topic is presented on public course
Using Perl on the Web
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.
Related technical and longer articles
Making all your .html files run a Perl script
Articles and tips on this subject | updated |
2321 | Uploading and Downloading files - changing names (Perl and PHP) 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 is it saved on your local disc, and what name is it given? These are not unusual questions, but it can be hard to find the answer, as I was reminded ... | 2009-08-04 |
1187 | Updating a page strictly every minute (PHP, Perl) 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.
I'm using client pull, where the browser asks for the next page - so my basic request is:
<meta http-equiv="refresh" content="60; url=/clock/now.php">
but ... | 2007-05-14 |
1009 | Passing GET parameters through Apache mod_rewrite 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 GET method through as well? Simply add on %{QUERY_STRING} onto the end of your new URL. You'll need to add a ? into the target URL to ensure that the ... | 2006-12-27 |
641 | Simple but rugged form handling demo 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 of the subject being taught. And this is one of those weeks.
It's an added pleasure where the demonstrations are web based, because I can then ... | 2006-06-05 |
Examples from our training material
Background information
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
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
Ruby,
Lua,
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.