Training, Open Source computer languages

PerlPythonMySQLTclRubyC & C++LuaJavaTomcatPHPhttpdLinux

Search our site for:
Home Accessibility Courses Diary The Mouth Forum Resources Site Map About Us Contact
Quiz Page php
The php quiz has changed! We have replaced php questions with answers! And from those answers you'll find further links to even more information - forums where you can ask questions, training courses, longer articles, and more. [link to quiz index] ... If you really want the old quiz questions, you can find them here, here, here and here ... and with onward links to the possible answers to each question too.

Flurinci knows Raby Lae PHP and Jeve
Three more Perl Programming examples for you ... Use of $" to produce csv data Efficient code with map and grep Use of implicit loop and print (-p switch) ... All from the Topicalisation and Special ...

Remember Me - PHP
Here's a paradox for you as a web site designer, when putting together a web site which requires a login. Most of your users are regulars, who really don't want the hassle of logging in every time ...

Text formating for HTML, with PHP
Do you want "normal" text that's formatted in a fixed width font, with white spaces and tabs and new line characters to have a similar appearance on a browser? The default answer of you generate a ...

Question Mark - Colon operator (Perl and PHP)
The ? and : operator in Perl and PHP allows you to write a single statement that's both an if and an else without the need for all the clutter of keywords, extra variables, and so on if all you want ...

Sorting objects in PHP
The OO model in PHP is very powerful indeed - and much more code is now written using the facilities it offers than was the case a year or two ago. On yesterday's Object Oriented Programming in PHP ...

Regular Expressions in PHP
Regular Expressions allow you to check if a string of text matches a particular pattern - for example to see if the data that a user has entered into a form looks like a Postcode / zipcode ... and ...

Refactoring - a PHP demo becomes a production page
"Refactoring" is a term that I've come across in Extreme Programming, but it's also a relevant topic to consider through the life cycle of any software. Perhaps I had better give a definition .... ...

Global - Tcl, PHP, Python
PHP, Python, Tcl and a number of other languages have a global keyword. And it's a misnomer in most (if not all) cases. To the un-initiated, "Global" means "worldwide" or "shared all around". So ...

Server overloading - turns out to be feof in PHP
From the manual page on feof: Warning - If passed file pointer is not valid you may get an infinite loop, because EOF fails to return TRUE. From a script on our server: while (1) { ...

Injection Attacks - avoiding them in your PHP
"Please help me debug this virus." I'm paraphrasing something that was posted, a long while ago now, on a board I look after ... and I deleted the code pretty darned fast, as I didn't (and still ...

What is built in to this httpd and PHP?
If you build your own tailored Apache httpd and PHP, you should take a full backup when you're done, and also fully document which options you selected and modules you included in the build. You ...

Diagrams to show you how - Tomcat, Java, PHP
I like to work with a flipchart occasionally, and I have been doing so quite a bit this week, which is a week that I'm giving a wide ranging web server deployment course under Linux, covering both ...

Upgrade from PHP 4 to PHP 5 - the TRY issue
It's often the most surprising things that catch you out on language upgrades! Our new web server is running PHP 5 (5.2.6) whereas the old shared service was running PHP 4. No problem with the ...

Perl v PHP, choosing the right language
"Should I use Perl or PHP?" - a question asked today about a heavy data processing application, but by a delegate who's main work is web site stuff and who is here on a PHP course ... with some prior ...

Dynamic maps / geographics in PHP
I've been doing some work with log file / exception report analysis over the past few days, with a geographic slant. And I've come to the conclusion that a picture paints a thousand words ... or even ...

Current visitors from around the world - PHP
Would you like to draw a map showing you where your visitors are coming from - all around the world? Something like this: Last 15 minutes - visitors to www.wellho.net I've being doing that through ...

Finding words and work boundaries (MySQL, Perl, PHP)
If you're searching for the word "mile", you probably don't want the page that tells you that Sally Smiled at Harry. But you may want to find a Milestone, even if it is within quotes. Regular ...

memcached - overview, installation, example of use in PHP
Let's say you have a large database on a busy server, and queries that are eating into your resources. Would you like to be able to speed things up? It usually turns out that there are certain ...

Apache httpd, MySQL, PHP - installation procedure
If you're installing LAMP (Linux, Apache, MySQL, PHP), what do you do and in which order? Here's a summary of the procedure we followed on todays Apache httpd deployment course - in this case ...

addslashes v mysql_real_escape_string in PHP
One of the most popular pages on our website is the one that shows you how to upload an image and store it in a database. And the associated demonstration showing you how to view images via a PHP ...

PHP examples - source code and try it out too
The move to our new server has given me the impetus to look at some of the online examples we have on our server - code you can try out, then see how it works - and I've started with some of the PHP ...

Larger applications in PHP
I've just finished a two day PHP techniques course - a subject that's tremendous fun to present, and a huge benefit to the delegates, as PHP programs can be written with great beauty, maintainability ...

Saying NOT in Perl, PHP, Python, Lua ...
"Isn't there one standard way to say NOT?" asked one of my delegates on today's course - and it's an excellent question. But the answer to a question about a negative subject is itself in the negative ...

Defensive coding techniques in PHP?
I used to write CAD system software (many moons ago), and when doing so I used what I call "defensive coding techniques". Which meant that I never trusted user input, that a file would be available, ...

cannot restore segment prot after reloc message - PHP / httpd
Here's a message that we got yesterday when building some of the machines on our Lamp deployment course [root@easterton apache2]# ./bin/apachectl start Syntax error on line 233 of ...

Two PHP include files to make easy web site indexing and navigation
My 'work' in campaigning for an appropriate train service on our local "TransWilts" line started three years ago now (!) with the Save the Train web site ... and grew to include the First Great ...

Accounts in PHP - an OO demo
I've written a new demonstration in PHP ... * a base class of line items for your accounts * subclasses for bills and invoices you issue * a sample application that takes a number of bill and ...

PHP - Sanitised application principles for security and useability
When you write a simple web based application, such as a tax calculator, it's always a good ides to echo back the values that your user filled in to the initial form as a part of the response page. ...

Checking server performance for PHP generated pages
I had a couple of reports recently about web pages from our site being a little slow to load, and my independent spy tells me that they're not bad, but not the world's fastest either. And a little ...

Exchange Rates - PHP with your prices in your users currency
Would you like to tell your user what your product will cost in his local currency? What a great idea, except that exchange rates change! The European Central Bank, though, makes a file of exchange ...

Using cookies and sessions to connect different URLs - PHP
One of the great beauties of cookies (and derived from that, of PHP sessions) is that they can be used across a series of pages on the same server - indeed we use cookies on this site to record our ...

Seeing how others do it - PHP training
We're always keeping an eye open for "how others do it" - we're quite happy to learn from others in the training business. But more often than not, we'll spot something and say "I would never do ...

Changing a screen saver from a web page (PHP, Perl, OSX)
Here's a challenge. I want to change the screen saver on a mac mini, running OSX, from a browser anywhere in the world. You may well ask why ... the screen of the mac mini is to be visible at Well ...

Gant charts - drawing them with a PHP script
I wrote a piece of project planning code - to generate GANT charts in PHP - when we were planning all the works on Well House Manor the best part of 2 years ago now. And although I did little more ...

PHP Techniques - a workshop
So many people know the basis of PHP - the language constructs themselves and how they work individually - but could really benefit from learning how to make the best of those elements. And these ...

PHP training courses every month
Due to increased demand, we have increased the frequency of our PHP courses and we're now running at least one course on the subject every month. * If you've never programmed before or written any ...

PHP course dot co, dot uk
"www.wellho.net". It's the natural domain for us to use - we provide Internet training services, and we'll provide those training services in whatever countries it's safe and legal for us to do so, ...

Making PHP and MySQL training relevant to the course delegates
If I'm training on MySQL or PHP, I'll often come up with an example in front of the class - it's much more effective training to see HOW an answer is reached than to simply be presented with a ...

Uploading to a MySQL database through PHP - examples and common questions
One of the most popular pages on the technical part of our web site relates to the uploading of images to a server from a local disc file via a browser, then storing those images on a database, and ...

Advanced Python, Perl, PHP and Tcl training courses / classes
This item is adapted from an answer that I have just written by email - but the question / conundrum as to what to do with fractured advanced training requirements is a common one, so the answer is ...



See also:

© WELL HOUSE CONSULTANTS LTD., 2008: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: 0800 043 8225 or 01225 708225 • FAX: 0845 8382 405 or 01225 707126 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho