Home Accessibility Courses Twitter The Mouth Facebook Resources Site Map About Us Contact
 
Python and Tcl - public course schedule [here]
Private courses on your site - see [here]
Please ask about maintenance training for Perl, PHP, Lua, etc
 
Case Sensitive?

PHP variable names are case sensitive, but the names of functions are case insensitive. Why is this?

PHP is a language that's designed to let you write a web page template into which you can insert additional tags to call up the functionality of PHP, and it originated in the days before xhtml when tags were case insensitive. So it's natural for those additional tags to be case insensitive too.

However, following on from other Open Source / Linux / Unix projects, for the most part PHP is case sensitive - a sensible approach as it avoids the loss by folding of 26 ASCII characters in your coding scheme. Also a sensible approach as those of us who use PHP and Perl and Python and other languages appreciate a certain amount of consistency.


It's very easy in PHP to write a piece of code that looks like a "dog's dinner" with a mixture of tags, code, SQL, English all in one file. Following a presentation last week on good PHP practice that I attended, I've written an extra example for our own courses and placed it in our solutions centre - you can see it on this site and learn more about it on our PHP Programming course too.

As an overview ..... split your PHP application into 4 files:

  1. A Top level that provides the URL for the visitor
  2. The page template
  3. Presentation helper logic
  4. The business logic


You can run the sample in our PHP demo directory
(written 2004-10-19, updated 2006-06-05)

 
Associated topics are indexed as below, or enter http://melksh.am/nnnn for individual articles
H101 - Introduction to PHP
  [4621] The power of scripting - (2016-01-12)
  [4118] We not only teach PHP and Python - we teach good PHP and Python Practice! - (2013-06-18)
  [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)
  [789] Hot answers in PHP - (2006-07-02)
  [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)
  [55] Evening classes to learn PHP - (2004-09-19)
  [48] PHP - onwards and upwards - (2004-09-14)


Back to
Hard work, Hard sell
Previous and next
or
Horse's mouth home
Forward to
Special change
Some other Articles
What makes a professional photographer?
Variable Scope
Five red flags
Special change
Case Sensitive?
Hard work, Hard sell
On line every 24 hours
Rude old people
When will Perl 6 be available
Getting the right level of trainer
4759 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, 88, 89, 90, 91, 92, 93, 94, 95, 96 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

© WELL HOUSE CONSULTANTS LTD., 2019: 404 The Spa • Melksham, Wiltshire • United Kingdom • SN12 6QL
PH: 01225 708225 • EMAIL: info@wellho.net • WEB: http://www.wellho.net • SKYPE: wellho

PAGE: http://www.wellho.net/mouth/93_Case- ... tive-.html • PAGE BUILT: Sat May 27 16:49:10 2017 • BUILD SYSTEM: WomanWithCat