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.

Grouping 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 ...

Past PHP delegates / others - coding help needed for next 3 months
To past delegates and other technical contacts ... I had a lunchtime meeting yesterday with a director who is working on a major PHP application and has urgent need of extra coding staff for a ...

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 ...

Learning PHP, Ruby, Lua and Python - upcoming courses
The following programming courses are all booking well, but still have good availability: PHP - starting 6th July Ruby - starting 14th July Lua - starting 10th August Python - starting 17th August ...

A (biased?) comparison of PHP courses in the UK
In answer to an email asking about alternative PHP courses ... I'm the tutor of our PHP courses, and I also keep a keen eye open on the options. Occasionally, I do a 'competitive survey' and compare ...

Adding a newsfeed for your users to a multipage PHP application
As I wrote it, I realised this was turning into rather a long article, but never mind. It shows the major new components added to a "4 layer model" application I was working on the weekend before ...

Improving the structure of your early PHP programs
When you first coded in PHP, you probably wrote a different script to handle each form in a series - it's the natural way when you're early in the learning process, but it can lead to repeated code ...

New Example - cacheing results in PHP for faster loading
Here's an example from the last couple of days which is fully my own work, so I can share! I was analysing a big data flow - yesterday's web log file in this case - and it was rather harsh on the ...

Matching disparate referencing systems (MediaWiki, PHP, also Tcl)
Yes, we are Well House CONSULTANTS and do a bit of specialist coding ... I have a requirement on my plate at present to write a piece of code for a customer that recognises cross reference codes ...

Application design in PHP - multiple step processes
When you're putting together a multiple step process in PHP (and that could be anything from a forum to an ordering system), you should bare in mind that each of the program elements will be the ...

PHP4 v PHP5 - Object Model Difference
In PHP, there was a major change in the object model between version 4 and version 5. This code here - incredibly - runs differently on the two versions and what happens when you assign an object to ...

Crossrefering documents with uniqueness and inconsistency issues - PHP proof of concept demo
The cross-referencing of documents - where one document contains a human readable reference to another - is very common. And so is the requirement to convert those cross-references into a appropriate ...

PHP - getclass v instanceof
It should be very rare that you want to say "what type of object is this?" in PHP - or in any OO language; that's because with a correctly implemented class structure, you should have polymorphic ...

Using 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 ...

What features does this visitors browser support? (PHP)
Does this visitor's web site support CSS? Is this visitor a robot? Should I send out frames? There are the sorts of questions that you may want to ask in a PHP page .... and PHP supports the ...

Choosing a railway station fairly in PHP
I've been transferring the West Wilts Rail Users Group web site into a wiki this evening ... and came up with the question "How do I fairly choose which station to put on their front page". Of ...

PHP Course - for hobby / club / charity users.
Are you looking after a PHP based web site but want to do more with it? Perhaps it's the web site for your cricket club, your local school, or a charity or special interest group you work with? What ...

Weekday or Weekend PHP, Python and Perl classes?
Should we run training courses during the week, or at weekends? Our 'traditional' business has been 80% + employees of companies, government organisations and educational establishments who have ...

Extra PHP Examples
Yesterday evening and this morning, I was helping with some specific PHP questions ... resulting in some new examples that I've put on the web site. • A program which can be used / allows logins ...

Setting up a MySQL database from PHP
Yes ... training on a Sunday ;-) ... I've been setting up a MySQL database from a PHP script and testing it. A couple of bits of source to share. 1. The setup of the database: <?php ...

A Presentation about our company - web and PHP
In answer to a request for further information about our training centre, the town in which it's located, and our training methods and facilities, I've put together a "Slide show" ...

Learning to program in PHP, Python, Java or Lua ...
... or in Ruby, Tcl, C, C++ or Perl Are you new to computer programming? Is it so long since you programmed that you feel very rusty and would like to start again from basics? If you've said "yes" to ...

httpd, Tomcat and PHP course enhancements
If you're in an area of the UK that's covered by 3G phone service, we can now have our training computers on line during private courses on your site without having to add our machines inside your ...

Injection Attack if register_globals in on - PHP
You may have heard me talk about "injection attacks" and that having register_globals set to on in PHP makes you liable to be caught by them. Well - that's a little bit dramatic as you can write ...

Discount Training Courses - PHP, Perl, Python
Here's an email I wrote in answer to a request for a discount earlier today. Many training companies quote high(er) prices, with the full anticipation that they can offer a wide range of discounts to ...

Keeping PHP code in database and running it
The software for these articles lets me enter HTML and keeps it in a database. If I want to add PHP, that gave me a problem as the data (HTML) was simply read from the database and passed to my ...

Best source to learn Java (or Perl or PHP or Python)
An impossible question - there is no best way - yet it's one that I'm asked from time to time. [["Hello. I'm doing a b.tech. My friends like ur site very much. Plz help us in Java programming - plz ...

Index Card System for Game Characters in PHP
A couple of days ago, I received a request for a PHP demonstration in which the web site owner could enter a character's name in a game, and something about the character, and have that information ...

PHP - Parse error: syntax error, unexpected $end ...
Have you ever had an irritating PHP message that says "parse error" or "syntax" error and little else - and points to $end / the last line of your PHP file which is (a) perfectly ok and (b) probably ...

Predictive Load Balancing - PHP and / or Java
Load Balancing Algorithms - the standard offerings How do you share out the requests when you're load balancing? The computer (or other device) that's sharing out the load needs to make a decision ...

Quick Summary - PHP installation
For Course Delegates - a quick reminder of the crucial commands. The numbers alongside the commands are just the history numbers! As your regular user: 1012 tar xzf bristol/php-5.2.5.tar.gz ...

Flash (client) to PHP (server) - example
Hidden deep in our website, there's an example of a Flash / Flex / Actionscript that runs in the browser, but contacts the server when certain information is required. In fact, it's so deeply hidden ...

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 ...


Comment: "Nice .. very helpful! ..."
Visitor Ranking 4.2 (5=excellent, 1=poor)

Comment by David Lefkon (published 2007-06-30)
Nice .. very helpful! [#3322]

Comment by Anon (published 2007-05-04)
This was a good quiz for me as a beginner [#3312]

Comment by Anon (published 2007-02-23) Suggested link.
helouuuu, php is not a programing language, have u ever heard of server-side scripts? [#3307]

Comment by viperxp45 (published 2007-05-04)
awsome [#3304]

Comment by Graham (published 2006-06-01)
Yes - because I have no element preceeding the quoted regular expression on that particular question, the 2 or 3 letters could be preceeded by other letters as you state, thus making it "2 or more letters". Noted, question updated. Thanks for the inputs [#3132]

Comment by Anon (published 2006-06-01)
This is true, the proper answer would be the one chosen. If the question stated [a-z]{2,3,}$ then the said correct answer would be the choice. [#3114]

Comment by curtis (published 2006-03-25)
Thorough, well-planned PHP quizes! I found one question in the intermediate quiz which said I was wrong, when, indeed, I was not:

The regular expression [a-z]{2,3}$ will only match

YOU WERE INCORRECT

The answer you gave:
any string that ends with 2 or 3 lower case letters

Correct Answer:
any string that ends with 2 or more lower case letters

[a-z]{2,3} will match only 2 or 3 lower case letters at the end of a string, not 2 or more. [#340]

You can Add a comment or ranking or edit your own comments

Average page ranking - 4.2

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