Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
For 2023 (and 2024 ...) - we are now fully retired from IT training.
We have made many, many friends over 25 years of teaching about Python, Tcl, Perl, PHP, Lua, Java, C and C++ - and MySQL, Linux and Solaris/SunOS too. Our training notes are now very much out of date, but due to upward compatability most of our examples remain operational and even relevant ad you are welcome to make us if them "as seen" and at your own risk.

Lisa and I (Graham) now live in what was our training centre in Melksham - happy to meet with former delegates here - but do check ahead before coming round. We are far from inactive - rather, enjoying the times that we are retired but still healthy enough in mind and body to be active!

I am also active in many other area and still look after a lot of web sites - you can find an index ((here))

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
Well House Consultants module G996
Newsletter Scripts
Resources from the web site of Well House Consultants on the subject of Newsletter Scripts. We provide open source training course and business hotel accommodation in Melksham, Wiltshire, England




Articles and tips on this subjectupdated
1954mod_rewrite for newcomers
What is mod_rewrite? It's an Apache httpd (web server) module that takes user's requests for pages and diverts them to a resource of a different name (and perhaps type). Why might we want to do this? See previous article for some reasons and alternatives Here's a simple example of a rewrite rule: RewriteRule ...
2013-01-02
(longer)
3179Oops - I typed ci not vi, and have lost my file ...
Sitting writing late at night, I occasionally misspoll something; no great problem - I can go back and correct it, or if I fail to do so occasionally my kind reader will work out whaT I mean and forgive. But occasionally, when I'm typing in commands at the command line, one character can cause a big ...
2011-02-24
 
2360Error Handling in Lua with assert and pcall
When a function fails in lua, you'll often find that it return a nil value that you can check, or it returns two values, the second of which is an error status / message that tells you what went wrong. Here's an example: value = tonumber(stuff) if value == nil then    print ("Nah!") else    print ...
2010-06-19
 
2539Changing Images
The simplest ideas are often the best ... and the simple idea of having a picture that automatically changes from time to time on your web page helps keep your customer's interest up when he returns to your site. You're seeing a picture of our dog Gypsy to the right of this block of text, but I don't ...
2009-12-17
 
2433Controlling, supressing, enabling PHP error messages
Q: "How can I suppress the PHP error messages?" Q: "I get no error messages - how can I tell what is going wrong in my PHP" Q: "Can I replace the PHP error messages with my own" However PHP is configured, there is no satisfying everyone ... and it's a mystery to many people who install PHP code as to ...
2009-10-03
 
2046Finding variations on a surname
Here's a little demonstration of how you can use PHP to look for a 'similar word' - in this case, from a file of surnames. Have I done all the hard work? No - I crawled for some surnames to add to my demonstration file, and I used PHP's built in functions to do the hard work! Run Demonstration ...
2009-08-31
 
2259Grouping rows for a summary report - MySQL and PHP
It's quite quick and easy to write a loop that goes through a mysql result set and displays the content on an HTML page (but remember security of data, size of resulting HTML page, and the need to consider special characters such as <). But what if you want a shorter report, grouping records together ...
2009-06-29
 
2145Using the internet to remotely check for power failure at home (PHP)
Do you have freezers and other electrical equipment at home and worry about whether they'll be all right while you're away on holiday? Do you have a broadband connection with a rarely changing IP address, and a web site that you host with a web space provider? Then you'll be able to set up a "heartbeat" ...
2009-04-30
 
1001.pdf files - upload via PHP, store in MySQL, retrieve
There's a common requirement to manage binary data - upload from a user, store, bring back in a web page. And where you have a substantial number of pieces of data - a lot of .pdf documents, .jpg or .gif images, or even Word documents, you'll wish to store them in a database with the potential for keyword ...
2008-12-21
 
1813Ajax - going Asyncronous and what it means
This is the second part of an "easy Ajax" series - for the first installment [link here]. In the first installment, I showed you a "bare bones" example in which Javascript on a browser called up a web service to change information being displayed dynmaically - but I couldn't reall call it Ajax (more ...
2008-09-28
 
1743First class functions in Lua lead to powerful OO facilities
"In Lua, function names are first class variables." Ok - so what does that mean? At the most direct / simplest, it means that a function can be stored in a variable - so that you can write function oik()   print ("does the real work!")   end and then action = oik action() to ...
2008-08-07
 
1665Factory method example - Perl
Utility methods (factorys) are often used to create objects which may be of any of one of a series of different classes, depending on the data passed in. Have a look at this Perl program which reads in data from a log file and creates a list of web site visit objects: use visit;   open (FH,"ac_20080527");   while ...
2008-06-05
 
1601Replacing the last comma with an and
If I have a list, I'm likely to want to present it comma separated for the most part, but with the word "and" between the last two elements. "Cambridge, the M11, the M25, the M4, the A361 and Melksham" for example. Lists or arrays can be joined in almost any language with a function called join or ...
2008-04-04
 
1505Script to present commonly used images - PHP
"What are the most popular pages in your picture library, and where are they used from?" An interesting question and I could analyze raw web logs to find out the answers. However, most of our images are managed by a script that retains extra information such as an image title, and uses are logged ... ...
2008-01-14
 
1487Efficient PHP applications - framework and example
There are many elements to your on line application - there's the "look" (1), the "feel" (2), the algorithms behind it (3), and the way the whole thing is bolted together (4). 1. The look may be shared across all the pages of your web site. 2. The feel you choose to use may be shared across all your ...
2007-12-30
 
1387Error logging to file not browser in PHP
When you first install PHP on your web server, any errors and warnings in you code are flagged up in the browser window. And that's ideal for development purposes - any problems are quickly indicated to you, with pointers to where the issue lies. But when you go live, there's a different story, Of ...
2007-10-16
 
1321Resetting session based tests in PHP
I was writing and testing a PHP session based application - one in which a series of pages are linked together to make up a complete system - yesterday. And as ever with testing, bugs were found in the code and other things had to be added that meant it needed to be changed. But it's rather different ...
2007-08-28
 
1217What are factory and singleton classes?
Do you find some of the OO terminolgy baffling? Once you've learnt about constructors and methods, inheritance, overloading and polymorphism and statics, you might think you're there. Then someone mentions a "factory class" or a "singleton" ... Fear not - factory and singleton classes are posh names ...
2007-06-08
 
1123mysqldump and mysqlrestore
It is vital that you back up your data ... and if you hold your data in a MySQL database, then the mysqldump utility will do the job admirably for you. It is equally vital that you can restore the data from backup if (heaven forbid) you need to do so ... and yet there is not a mysqlrestore utility. Why ...
2007-03-30
 
1066Final, Finally and Finalize - three special words in Java
A final method or variable is one that can't be overridden - you can define a method as final within a class to ensure that any extensions to the class don't replace it. If you add a finally block onto the end of a try / catch exception handler, you're defining a block of code that will be run if the ...
2007-02-05
 
Topics covered in this module
Articles used as scripts on the
'Of Course' Newsletter
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.


You can Add a comment or ranking to this page

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

PAGE: http://www.wellho.net/resources/G996.html • PAGE BUILT: Tue Feb 23 15:07:46 2021 • BUILD SYSTEM: JelliaJamb