Main Content
Hot answers in PHP Archive - Originally posted on "The Horse's Mouth" - 2006-07-02 05:35:06 - Graham Ellis
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 .
Some other articles
H999 - Additional PHP Material Image indexer / thumbnail display scripts in PHP Catchable fatal error in PHP ... How to catch, and alternative solutions such as JSON Arrays of arrays - or 2D arrays. How to program tables. Exception handling in PHP If nothing, make it nothing. Extra PHP Examples PHP Techniques - a workshop Flipping images on your web page Script to present commonly used images - PHP Copyright and theft of images, bandwidth and members. More PHP sample and demonstration programs Ordnance Survey Grid Reference to Latitude / Longitude Converting from postal address to latitude / longitude Controlling and labelling Google maps via PHP PHP Standalone - keyboard to screen Drawing hands on a clock face - PHP Drawing dynamic graphs in PHP Sorting people by name in PHP Parallel processing in PHP Dates, times, clickable diarys in PHP Display an image from a MySQL database in a web page via PHP Syntax checking in PHP Reporting on the 10 largest files or 10 top scores PHP - a team member leaves Check your user is human. Have him retype a word in a graphic This article Presentation, Business and Persistence layers in Perl and PHP PHP Image viewing application PHP - setting sort order with an associative array Merging pictures using PHP and GD Running a Perl script within a PHP page Double Dollars in PHP Stand alone PHP programs Time calculation in PHP the array returned by preg_match_all More maps Ordnance Survey - using a 'Get a map' What and why for the epoch PHP and natural sorting H312 - Tips and Techniques The power of scripting FileMaker Day to Unix Time conversion PHP - some quick fixes if scripts have issues, and how to use our support Problem ... I want to print a series of numbered forms A comment on comments in PHP How to set up short and meaningfull alternative URLs How did I do THAT? PHP preg functions - examples and comparision Injection Attack if register_globals in on - PHP Keeping PHP code in database and running it PHP - Parse error: syntax error, unexpected $end ... Two PHP include files to make easy web site indexing and navigation Checking server performance for PHP generated pages Easy conversion - image formats, currencies and distances PHP Standalone - keyboard to screen Dates, times, clickable diarys in PHP Syntax checking in PHP This article H112 - Further Web Page and Network Handling Moving from mysql to mysqli - simple worked example Passing variable between PHP pages - hidden fields, cookies and sessions Multiple page web applications - maintaining state - PHP Telling which ServerAlias your visitor used - useful during merging domains Easy session example in PHP - keeping each customers data apart 3 digit HTTP status codes - what are they, which are most common, which should be a concern? Sending out an email containing HTML from within a PHP page Downloading a report from the web for further local analysis Uploading a document or image to its own URL via a browser How to build a test harness into your PHP Shipping a test harness with your class in PHP http, https and ajp - comparison and choice Downloading data for use in Excel (from PHP / MySQL) Keeping staff up to date on hotel room status Script to present commonly used images - PHP PHP / Web 2 logging Single login and single threaded models - Java and PHP Copyright and theft of images, bandwidth and members. Simple page password protection - PHP .php or .html extension? Morally Static Pages PHP header() function - uses and new restrictions Updating a page strictly every minute (PHP, Perl) Improving searches - from OR to AND? PHP Image upload script Passing GET parameters through Apache mod_rewrite Global, Superglobal, Session variables - scope and persistance in PHP Of course I'll tell you by email Image maps for navigation - a straightforward example This article Finding the language preference of a web site visitor Adding PHP tags to an old cgi program PHP - setting sort order with an associative array Using PHP to output images, XML, Style sheets, etc Morning image, afternoon image Daily Image Santafied Setting the file name for a downloaded document Accessing a page via POST from within a PHP script Server side scripting of styles to suit the browser Caching an XML feed Reading a news or blog feed (RSS) in your PHP page What brings people to my web site? Time calculation in PHP Sudoku helper or sudoku cheat Spotting a denial of service attack What language is this written in? When to use Frames H110 - HTML Web Page Data Handling Filtering PHP form inputs - three ways, but which should you use? Sending out an email containing HTML from within a PHP page What features does this visitors browser support? (PHP) How to tweet automatically from a blog Finding variations on a surname Injection Attack if register_globals in on - PHP Text formating for HTML, with PHP Emailing as HTML (Web Page) - PHP example Buffering output - why it is done and issues raised in Tcl, Perl, Python and PHP Sorting people by name in PHP .pdf files - upload via PHP, store in MySQL, retrieve PHP - good coding practise and sticky radio buttons This article Robust PHP user inputs Current cost in your local currency H101 - Introduction to PHP The power of scripting We not only teach PHP and Python - we teach good PHP and Python Practice! Learning to Program ... in PHP. Course examples. PHP Course - for hobby / club / charity users. PHP - Parse error: syntax error, unexpected $end ... Perl v PHP, choosing the right language Q - Should I use Perl or Python? From Web to Web 2 The HTML++ Metalanguage Sludge off the mountain, and Python and PHP The LAMP Cookbook - Linux, Apache, MySQL, PHP / Perl Syntax checking in PHP Is Perl being replaced by PHP and Python? Remember a site's non-technical issues too This article Why reinvent the wheel Testing you Perl / PHP / MySQL / Tcl knowledge PHP - London course, Melksham Course, Evening course Choosing the right language It's REALLY easy to add a little PHP Learning to program in Perl or PHP FTP - how to make the right transfers Central London Courses - Perl, PHP, Python, Tcl, MySQL Bridging to the customer requirement Happy Birthday, PHP Programming languages - a comparison Too many Perls Portrait of the author PHP v Java Case Sensitive? Evening classes to learn PHP PHP - onwards and upwards