Well House
Consultants
Hotel and training centre, Melksham, Wiltshire

This is page http://www.wellho.net/mouth/1451_Mor ... grams.html

Our email: info@wellho.net • Phone: +44 (0)1225 708225

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 01:33:52)

 
Associated topics are indexed under
H106 - PHP - Arrays
  [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
  [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
  [2829] Dauncey Gardens, Melksham - (2010-06-27)
  [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)
  [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 Secondary 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'
2886 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 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).

© WELL HOUSE CONSULTANTS LTD., 2010: Well House Manor • 48 Spa Road • Melksham, Wiltshire • United Kingdom • SN12 7NY
PH: +44 (0)1225 708225 • FAX: +44 (0)1225 344596 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho