Browsing All posts tagged under »PHP«

Error reporting in PHP

March 21, 2007


Some way down the road the default php.ini started to get shipped with settings that stopped the error printing. The default location of this file is /usr/local/lib/php.ini, and the most common settings that controls the error reporting behaviour is listed below: error_reporting = E_ALL | E_ERROR | ... | E_USER_NOTICE display_errors = On | Off […]

The UTF-8 character encoding, XML and PHP5

July 11, 2006


In this article you will get to know a litte about how character sets, XML and PHP5 work together. We will also look a bit deeper into the most common character sets and encodings. UTF-8 First we need to talk a little so that you will be able to grasp the two terms: character set […]

DOM, the built in template system

June 6, 2006


It’s allways good to separate code and markup, and with DOM you can do such a thing. We will look at these properties of DOM in this article: Load and parse a base XHTML file Fetch elements using XPath Append some XHTML elements Print the modified document Let’s start with the file base.xml: <?xml version="1.0" […]

The power of archetype principles in familiar context

November 12, 2004


In this paper we will build a simple but powerful system containing some of the principles of archetypes. We will first look at how we can specify archetypes. Then we will make some instances and build the part of the system that displays them properly. Later we will implement a user interface where we can […]