As the size of your PHP code library increases, there is increased risk of accidentally re-defining a function or class name that has been declared before. The problem is exacerbated when you attempt to add third-party components or plugins; what if two or more code sets implement a ?Database? or ?User? class?
Namespaces were created as part of PHP 5.3 to solve certain conflicts that can arise when two different classes are given the same name. This situation comes up more commonly than you might think. This four-part series introduces you to using namespaces to solve these and similar issues. It includes copious code examples to enhance … [Read more…]
Watermarks are easy to create using three CSS style properties: background-image background-repeat background-attachment You use background-image to define the image to use as your watermark, background-repeat to make it display only once, and background-attachment to turn it into a watermark.
Brain damaging habits No Breakfast People who do not take breakfast are going to have a lower blood sugar level. This leads to an insufficient supply of nutrients to the brain causing brain degeneration. Overeating It causes hardening of the brain arteries, leading to a decrease in mental power. Smoking It causes multiple brain shrink … [Read more…]
A demonstration of selecting checkboxes using jQuery.We start off with a bunch of checkboxes: