Hotel and training centre, Melksham, Wiltshire
High quality accommodation for course delegates, business travellers and the leisure visitor too.

Search for:
Home Accessibility Bedrooms Book Here The Mouth Facebook Resources Find Us About Us Contact
More PHP sample and demonstration programs

It's amazing how many little (and not so little) new programs and demonstrations I write - here are some from the last couple of days:

• The Melksham / Bowerhill Christmas Quiz, 2007. Ten questions, work out the answers, click on a link at the bottom the page and it will be refreshed to tell you the actual results. Uses a data file of questions - would work equally well for Skegness, St Anne's or Aberdovey!

Try the Quiz, source

• An updated demonstration of joining two images with a "tear" - graphic artist effects via the GD module of PHP on your web page.

See a sample, source

• Sorting an Associate Array - and how User Defined Sorts work in PHP. The business of a callback function is quick a new concept to many of our customers, and this demonstration shows how it works ... complete with print statements within the comparator to help explain the algorithm.

See it run, See the source

• Sorting a regular array in PHP - forward, backward, and in a user defined way using a date that's embedded in the line. This demonstration program also shows you how to extract a date and time from a line of data using regular expressions, to convert it to a standard time format (that can be compared, sorted, etc) and then convert it back into a text form that's human or database readable.

Run the demonstration, and look at the source code for it

• There are many ways of looping through a PHP array, and this final example shows many of them compared in the same short program.

Run the program, source
(written 2007-12-01, updated 2013-01-02)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
H106 - PHP - Arrays
  [4244] Disambiguation - PHP List - (2014-03-07)
  [4072] Splitting the difference with PHP - (2013-04-27)
  [4068] Arrays in PHP - contain different and even mixed data types - (2013-04-24)
  [3534] Learning to program in PHP - Regular Expression and Associative Array examples - (2011-12-01)
  [3379] Sorting data the way YOU want it sorted - (2011-08-05)
  [3004] Increment operators for counting - Perl, PHP, C and others - (2010-10-18)
  [2920] Sorting - naturally, or into a different order - (2010-08-14)
  [2915] Looking up a value by key - associative arrays / Hashes / Dictionaries - (2010-08-11)
  [2274] PHP preg functions - examples and comparision - (2009-07-08)
  [2215] If nothing, make it nothing. - (2009-06-02)
  [1614] When an array is not an array - (2008-04-17)
  [1199] Testing for one of a list of values. - (2007-05-22)
  [1116] PHP adding arrays / summing arrays - (2007-03-23)
  [832] Displaying data at 5 items per line on a web page - (2006-08-14)
  [773] Breaking bread - (2006-06-22)
  [603] PHP - setting sort order with an associative array - (2006-02-13)
  [409] Functions and commands with dangerous names - (2005-08-11)

H999 - Additional PHP Material
  [3210] Catchable fatal error in PHP ... How to catch, and alternative solutions such as JSON - (2011-03-22)
  [3118] Arrays of arrays - or 2D arrays. How to program tables. - (2011-01-02)
  [2684] Exception handling in PHP - (2010-03-18)
  [2073] Extra PHP Examples - (2009-03-09)
  [1623] PHP Techniques - a workshop - (2008-04-26)
  [1519] Flipping images on your web page - (2008-01-26)
  [1505] Script to present commonly used images - PHP - (2008-01-13)
  [1485] Copyright and theft of images, bandwidth and members. - (2007-12-26)
  [1391] Ordnance Survey Grid Reference to Latitude / Longitude - (2007-10-14)
  [1390] Converting from postal address to latitude / longitude - (2007-10-13)
  [1389] Controlling and labelling Google maps via PHP - (2007-10-13)
  [1270] PHP Standalone - keyboard to screen - (2007-07-18)
  [1194] Drawing hands on a clock face - PHP - (2007-05-19)
  [1104] Drawing dynamic graphs in PHP - (2007-03-09)
  [1053] Sorting people by name in PHP - (2007-01-26)
  [1020] Parallel processing in PHP - (2007-01-03)
  [1010] Dates, times, clickable diarys in PHP - (2006-12-28)
  [937] Display an image from a MySQL database in a web page via PHP - (2006-11-22)
  [917] Syntax checking in PHP - (2006-11-07)
  [839] Reporting on the 10 largest files or 10 top scores - (2006-08-20)
  [822] PHP - a team member leaves - (2006-08-04)
  [806] Check your user is human. Have him retype a word in a graphic - (2006-07-17)
  [789] Hot answers in PHP - (2006-07-02)
  [687] Presentation, Business and Persistence layers in Perl and PHP - (2006-04-17)
  [665] PHP Image viewing application - (2006-04-01)
  [563] Merging pictures using PHP and GD - (2006-01-13)
  [493] Running a Perl script within a PHP page - (2005-11-12)
  [483] Double Dollars in PHP - (2005-11-02)
  [468] Stand alone PHP programs - (2005-10-18)
  [372] Time calculation in PHP - (2005-07-08)
  [337] the array returned by preg_match_all - (2005-06-06)
  [322] More maps - (2005-05-23)
  [320] Ordnance Survey - using a 'Get a map' - (2005-05-22)
  [239] What and why for the epoch - (2005-03-08)
  [54] PHP and natural sorting - (2004-09-19)

M201 - Well House Manor - Around Melksham, Wiltshire
  [4169] Around and about - Melksham - (2013-09-08)
  [4151] Tell me a bit about Melksham - (2013-08-10)
  [4145] After the storm - (2013-07-29)
  [4141] My pictures of Melksham Carnival, 13th July 2013 - (2013-07-14)
  [4119] Melksham - Flower Town - (2013-06-20)
  [4084] New Pictures - Melksham Pack Horse Bridge - (2013-05-12)
  [3962] Melksham welcomes visitors - new blue plaque trail and more - (2012-12-27)
  [3960] Picture - between Lacock and Melksham - (2012-12-21)
  [3949] Melksham Spa from Woolmore Farm - (2012-12-09)
  [3944] Melksham Christmas Lights, 2012 - (2012-12-05)
  [3897] Autumn scenes from Melksham - (2012-10-16)
  [3869] How have Melksham shops changed in 60 years? - (2012-09-24)
  [3864] Guest Guide for Well House Manor and Melksham - (2012-09-18)
  [3837] Evening behind Melksham Spa - (2012-08-12)
  [3822] Town Clean - Melksham - (2012-07-29)
  [3771] Fine evening, country walk from Melksham - pictures - (2012-06-21)
  [3744] Short Web Addresses for Melksham - (2012-05-30)
  [3735] A walk around Melksham this morning. Can you place all of these? - (2012-05-17)
  [3720] Melksham ATC - freedom of the town - (2012-05-05)
  [3712] Some unpublished and historic pictures - Museum of Melksham - (2012-04-28)
  [3704] The Bowerhill Villager - a newsletter for Bowerhill, Melksham - (2012-04-22)
  [3703] A Museum for Melksham History. Open from 12th May 2012. - (2012-04-21)
  [3697] Events in Melksham - read all about them, and tell us about yours - (2012-04-15)
  [3692] Deeper than Art - An exhibition of the tattoo Canvas - Melksham - (2012-04-10)
  [3659] Welcome to Melksham - our new communities - (2012-03-18)
  [3657] Basham Festival, Melksham, early August 2012 - a welcome - (2012-03-16)
  [3656] TrainWest 2012 - 14th and 15th April, Melksham, Wiltshire - (2012-03-16)
  [3647] Along the brook - East Melksham to Melksham - (2012-03-10)
  [3646] Exploring Melksham with a film maker - (2012-03-09)
  [3644] The way of the Prioress - Melksham history pictured today - (2012-03-09)
  [3605] Snow comes to Melksham, Wiltshire - pictures - (2012-02-10)
  [3569] Images of the new year in Melksham - (2012-01-05)
  [3543] Some different pictures from Melksham - (2011-12-07)
  [3526] Melksham has a Heart - Montage picture for sale - (2011-11-20)
  [3525] Melksham has a heart - come and see the pictures. Sunday, 11 to 3, Assembly Hall - (2011-11-18)
  [3520] Quintessentially English - scenes from our Wiltshire town - (2011-11-14)
  [3507] Melksham Forward - meeting summary and pictures - (2011-11-04)
  [3502] Sunday Evening ... newest and oldest Melksham pictures - (2011-10-30)
  [3499] Images of Melksham - (2011-10-29)
  [3470] Currently pictured in Melksham - (2011-10-09)
  [3389] Plenty to do in Melksham - (2011-08-13)
  [3337] Home Grown Pigs, near Melksham Station - (2011-06-26)
  [3305] Getting away from the madding crowd - an intercontinental journey - (2011-05-27)
  [3266] Easter on the Canal - near Melksham, Wiltshire - (2011-04-26)
  [3258] Morning in Melksham - (2011-04-23)
  [3248] What have these pictures in common? - (2011-04-16)
  [3232] Around and about Melksham in more pictures - (2011-04-05)
  [3227] Her favourite store - (2011-04-02)
  [3209] Seeing Electricity Pylons near Melksham - (2011-03-21)
  [3050] Views of Melksham - November 2010 - (2010-11-13)
  [3023] Autumn walk from Bowerhill - (2010-10-31)
  [2950] Camilla, Duchess of Cornwall, turns first sod in Melksham Link Canal - (2010-09-09)
  [2854] Melksham Food and Drink Fair and Town Crier Competition - (2010-07-04)
  [2829] Dauncey Gardens, Melksham - (2010-06-27)
  [2739] Melksham Scouts - (2010-04-25)
  [2716] Melksham in Pictures - (2010-04-10)
  [2708] The bull on the footpath - (2010-04-04)
  [2691] New brochures for the Melksham area - (2010-03-24)
  [2665] Early Spring walk in Melksham - (2010-03-07)
  [2588] Freddies Wood and the K and A Canal - (2010-01-17)
  [2585] Consultation in Melksham, on Melkshams future - (2010-01-17)
  [2528] Melksham Christmas Lights - (2009-12-05)
  [2497] Brown horses in Melksham - (2009-11-08)
  [2480] Pantomimes around Melksham - 2009/2010 season - (2009-10-28)
  [2349] Businesses effected by road works in Melksham - (2009-08-11)
  [2329] Great to be in Melksham - (2009-08-08)
  [2297] Standing on the corner, Melksham Carnival - (2009-07-19)
  [2262] History is not always pretty - (2009-06-30)
  [2253] Walks in and around Melksham, Wiltshire - (2009-06-21)
  [2175] Melksham in pictures - (2009-05-11)
  [2168] In honour of the photograph, I present ... a walk from Reybridge to Lacock - (2009-05-10)
  [2142] Riverside Development - (2009-04-26)
  [2066] Melksham Industrial - (2009-03-04)
  [2064] East of Melksham Countryside - (2009-03-02)
  [2043] Confidence, Customer Service and Tourism in Melksham - (2009-02-15)
  [2008] The Month Ahead - What is happening in Melksham - (2009-01-25)
  [1986] Walk to Bowerhill - (2009-01-10)
  [1977] Going round the block - (2009-01-04)
  [1928] Melksham Oak Community School, Melksham, Wiltshire - (2008-12-07)
  [1436] A little touring help during a business trip to England - (2007-11-18)
  [1368] Getting the local voice heard - (2007-09-26)
  [1360] Asda in Melksham - Welcome or not? - (2007-09-21)
  [1343] Melksham Laundrette - (2007-09-09)
  [1341] Moving to Melksham? Househunting map. - (2007-09-09)
  [1330] While waiting for Melksham Post Office - (2007-09-02)
  [1271] Till the cows come home - (2007-07-19)
  [1266] Party in the Park - (2007-07-14)
  [1206] Where and When - can you place the picture? - (2007-05-27)
  [1177] Sorting out for a site map - (2007-05-05)
  [1137] Wiltshire Circles - (2007-04-07)
  [1117] Newport Male Voice Choir - (2007-03-24)
  [977] Melksham and Norwich - (2006-12-10)
  [957] Improving the historic town of Melksham - (2006-11-30)
  [929] Presenting Melksham - for a weekend away in Wiltshire - (2006-11-17)
  [879] Tuesday night is party night - (2006-09-26)
  [866] A lazy programmer is a good programmer - (2006-09-15)
  [847] Image maps for navigation - a straightforward example - (2006-08-28)
  [830] Butterflies in a Wiltshire garden - (2006-08-12)
  [811] Melksham in Bloom - (2006-07-22)
  [805] Melksham Carnival Parade - (2006-07-16)
  [676] Melksham, Wiltshire - (2006-04-08)
  [437] Outside of the box - (2005-09-06)


Back to
Easy selection of multiple SQL conditions from PHP
Previous and next
or
Horse's mouth home
Forward to
Santa on the train to Melksham
Some other Articles
Connecting to MySQL 5 from PHP on Mac OSX Leopard
From Sunday to Monday, from Melksham to the Balkans
What makes our courses special?
Santa on the train to Melksham
More PHP sample and demonstration programs
Easy selection of multiple SQL conditions from PHP
Upgrade Mac OSX to Leopard, Web Server Apache httpd config lost
Question on division (Java) - Also Perl, PHP, Python ...
Refa Tandoori Indian Restaurant, Melksham
An answer to a student asking 'Help'
4318 posts, page by page
Link to page ... 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, 15, 16, 17, 18, 19, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 33, 34, 35, 36, 37, 38, 39, 40, 41, 42, 43, 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 55, 56, 57, 58, 59, 60, 61, 62, 63, 64, 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 79, 80, 81, 82, 83, 84, 85, 86, 87 at 50 posts per page


This is a page archived from The Horse's Mouth at http://www.wellho.net/horse/ - the diary and writings of Graham Ellis. Every attempt was made to provide current information at the time the page was written, but things do move forward in our business - new software releases, price changes, new techniques. Please check back via our main site for current courses, prices, versions, etc - any mention of a price in "The Horse's Mouth" cannot be taken as an offer to supply at that price.

Link to Ezine home page (for reading).
Link to Blogging home page (to add comments).

You can Add a comment or ranking to this page
Hello. I'm Graham Ellis. If you have a question about the hotel, please ask me or

 

then book here

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

PAGE: http://www.wellho.net/mouth/1451_Mor ... grams.html • PAGE BUILT: Thu Sep 18 15:30:25 2014 • BUILD SYSTEM: WomanWithCat