We've got a lot - a LOT of demonstrations and source code on our site. Here are a few of the most popular ones all brought together in a single listing. Enjoy ...
Searching - how similar are two words? -
try about source
Does a particular URL exist? -
try source
Uploading an image to a database -
try about source
Thumbnail generator and viewer -
try source
Using a PHP application and Frames to navigate a directory structure -
try source about
Area unit conversion program -
try source
Different images depending on time of day -
try source
Web page spell checker -
try source about
Exchange rate conversion using current rates from European Central Bank -
try source
4 layer model - writing a MAINTAINABLE application in PHP -
try source
Sudoku script - solves puzzles for you -
try source
Email traffic graphs -
try source
Using a database to hold an image library -
try source about
Seeing where current web site visitors are browsing -
try
Checking up on various servers -
try source about
Shared information system -
try about
Most looked for language on our site -
try about source
You are welcome to learn from all the source codes, to adapt and adopt.
Links back would be appreciated. Please note that its up to you to ensure that our sample source does what you require on your own web site, and doesn't have any unwanted side effects (sorry about the need for a legal disclaimer!)
See also my
Hot answers to MySQL questions.
(written 2006-07-02, updated 2013-01-02)
4aa3
Associated topics are indexed under
H101 - Introduction to PHP [3025] Learning to Program ... in PHP. Course examples. - (2010-11-01)
[2097] PHP Course - for hobby / club / charity users. - (2009-03-22)
[1958] PHP - Parse error: syntax error, unexpected $end ... - (2008-12-23)
[1753] Perl v PHP, choosing the right language - (2008-08-14)
[1717] Q - Should I use Perl or Python? - (2008-07-23)
[1198] From Web to Web 2 - (2007-05-21)
[1050] The HTML++ Metalanguage - (2007-01-22)
[949] Sludge off the mountain, and Python and PHP - (2006-11-27)
[924] The LAMP Cookbook - Linux, Apache, MySQL, PHP / Perl - (2006-11-13)
[917] Syntax checking in PHP - (2006-11-07)
[846] Is Perl being replaced by PHP and Python? - (2006-08-27)
[795] Remember a site's non-technical issues too - (2006-07-07)
[712] Why reinvent the wheel - (2006-05-06)
[691] Testing you Perl / PHP / MySQL / Tcl knowledge - (2006-04-19)
[646] PHP - London course, Melksham Course, Evening course - (2006-03-14)
[629] Choosing the right language - (2006-03-01)
[624] It's REALLY easy to add a little PHP - (2006-02-26)
[577] Learning to program in Perl or PHP - (2006-01-26)
[433] FTP - how to make the right transfers - (2005-09-01)
[382] Central London Courses - Perl, PHP, Python, Tcl, MySQL - (2005-07-18)
[380] Bridging to the customer requirement - (2005-07-16)
[341] Happy Birthday, PHP - (2005-06-09)
[317] Programming languages - a comparison - (2005-05-20)
[135] Too many Perls - (2004-11-30)
[132] Portrait of the author - (2004-11-27)
[124] PHP v Java - (2004-11-20)
[93] Case Sensitive? - (2004-10-19)
[55] Evening classes to learn PHP - (2004-09-19)
[48] PHP - onwards and upwards - (2004-09-14)
H110 - PHP - HTML Web Page Data Handling [3926] Filtering PHP form inputs - three ways, but which should you use? - (2012-11-18)
[3036] Sending out an email containing HTML from within a PHP page - (2010-11-07)
[2135] What features does this visitors browser support? (PHP) - (2009-04-22)
[2107] How to tweet automatically from a blog - (2009-03-28)
[2046] Finding variations on a surname - (2009-02-17)
[2025] Injection Attack if register_globals in on - PHP - (2009-02-04)
[1831] Text formating for HTML, with PHP - (2008-10-11)
[1169] Emailing as HTML (Web Page) - PHP example - (2007-04-30)
[1136] Buffering output - why it is done and issues raised in Tcl, Perl, Python and PHP - (2007-04-06)
[1053] Sorting people by name in PHP - (2007-01-26)
[1001] .pdf files - upload via PHP, store in MySQL, retrieve - (2006-12-19)
[896] PHP - good coding practise and sticky radio buttons - (2006-10-17)
[589] Robust PHP user inputs - (2006-02-03)
[50] Current cost in your local currency - (2004-09-16)
H112 - PHP - Further Web Page and Network Handling [4070] Passing variable between PHP pages - hidden fields, cookies and sessions - (2013-04-26)
[3918] Multiple page web applications - maintaining state - PHP - (2012-11-10)
[3568] Telling which ServerAlias your visitor used - useful during merging domains - (2012-01-04)
[3540] Easy session example in PHP - keeping each customers data apart - (2011-12-06)
[3432] 3 digit HTTP status codes - what are they, which are most common, which should be a concern? - (2011-09-11)
[2918] Downloading a report from the web for further local analysis - (2010-08-13)
[2729] Uploading a document or image to its own URL via a browser - (2010-04-18)
[2679] How to build a test harness into your PHP - (2010-03-16)
[2632] Shipping a test harness with your class in PHP - (2010-02-12)
[1549] http, https and ajp - comparison and choice - (2008-02-22)
[1518] Downloading data for use in Excel (from PHP / MySQL) - (2008-01-25)
[1515] Keeping staff up to date on hotel room status - (2008-01-22)
[1505] Script to present commonly used images - PHP - (2008-01-13)
[1496] PHP / Web 2 logging - (2008-01-06)
[1495] Single login and single threaded models - Java and PHP - (2008-01-04)
[1485] Copyright and theft of images, bandwidth and members. - (2007-12-26)
[1379] Simple page password protection - PHP - (2007-10-04)
[1355] .php or .html extension? Morally Static Pages - (2007-09-17)
[1210] PHP header() function - uses and new restrictions - (2007-05-30)
[1187] Updating a page strictly every minute (PHP, Perl) - (2007-05-14)
[1183] Improving searches - from OR to AND? - (2007-05-11)
[1114] PHP Image upload script - (2007-03-21)
[1009] Passing GET parameters through Apache mod_rewrite - (2006-12-27)
[936] Global, Superglobal, Session variables - scope and persistance in PHP - (2006-11-21)
[904] Of course I'll tell you by email - (2006-10-25)
[847] Image maps for navigation - a straightforward example - (2006-08-28)
[767] Finding the language preference of a web site visitor - (2006-06-18)
[675] Adding PHP tags to an old cgi program - (2006-04-08)
[603] PHP - setting sort order with an associative array - (2006-02-13)
[565] Using PHP to output images, XML, Style sheets, etc - (2006-01-15)
[542] Morning image, afternoon image - (2005-12-26)
[537] Daily Image Santafied - (2005-12-22)
[484] Setting the file name for a downloaded document - (2005-11-03)
[451] Accessing a page via POST from within a PHP script - (2005-09-26)
[443] Server side scripting of styles to suit the browser - (2005-09-12)
[425] Caching an XML feed - (2005-08-26)
[410] Reading a news or blog feed (RSS) in your PHP page - (2005-08-12)
[376] What brings people to my web site? - (2005-07-13)
[372] Time calculation in PHP - (2005-07-08)
[356] Sudoku helper or sudoku cheat - (2005-06-23)
[345] Spotting a denial of service attack - (2005-06-12)
[314] What language is this written in? - (2005-05-17)
[220] When to use Frames - (2005-02-19)
H312 - PHP - Tips and Techniques [4074] A comment on comments in PHP - (2013-04-28)
[2981] How to set up short and meaningfull alternative URLs - (2010-10-02)
[2478] How did I do THAT? - (2009-10-26)
[2274] PHP preg functions - examples and comparision - (2009-07-08)
[1983] Keeping PHP code in database and running it - (2009-01-09)
[1684] Two PHP include files to make easy web site indexing and navigation - (2008-06-21)
[1667] Checking server performance for PHP generated pages - (2008-06-06)
[1649] Easy conversion - image formats, currencies and distances - (2008-05-21)
[1270] PHP Standalone - keyboard to screen - (2007-07-18)
[1010] Dates, times, clickable diarys in PHP - (2006-12-28)
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)
[2215] If nothing, make it nothing. - (2009-06-02)
[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)
[1451] More PHP sample and demonstration programs - (2007-12-01)
[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)
[1194] Drawing hands on a clock face - PHP - (2007-05-19)
[1104] Drawing dynamic graphs in PHP - (2007-03-09)
[1020] Parallel processing in PHP - (2007-01-03)
[937] Display an image from a MySQL database in a web page via PHP - (2006-11-22)
[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)
[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)
[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)
54ec
Some other Articles
The Wilts and Berks CanalIs Java the right language to learn?Strange housewarmingShadow Transport Minister to visit MelkshamHot answers in PHPNew - Conditional expressions in Python 2.5Tk - laying out your GUI with frames, pack and gridFirst Light, Bootle Docks, LiverpoolRunning external processes in Tcl and Tcl/TkWhich way to turn?