Kore Nordmann - PHP / Projects / Politics ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ :Author: Kore Nordmann :Date: Mon, 09 Jan 2012 08:35:28 +0100 :Copyright: CC by-sa ============================= Articles published in my blog ============================= - Image creation with PHP - A first shape There are several ways to create images or graphics with PHP. First there are some well known extensions, like ext/GD, or perhaps ext/ming everybody immediately remembers, when it comes to graphics generation. But there are several structural differences not in between the avaliable libraries, but also between the image formats you can create. This article series will give you some insight on the formats and libraries, and then shows how an abstraction layer could be build. This second part describes the generation of shapes and the basic drawing context. - Image creation with PHP - Formats & Libraries There are several ways to create images or graphics with PHP. First there are some well known extensions, like ext/GD, or perhaps ext/ming everybody immediately remembers, when it comes to graphics generation. But there are several structural differences not in between the avaliable libraries, but also between the image formats you can create. This article series will give you some insight on the formats and libraries, and then shows how an abstraction layer could be build. This first part of this article describes the various image formats and backends. - Tagging - Broken by design In the meantime tagging, as a folksonomy, is often nearly used as equivalent to the whole Web-2.0-hype. Nowadays you can't develop any new application without adding tags, and I wanted to do the same. But reviewing the system in a bit more complex environment shows some major flaws, which can also be detected in the implementations of simple applications. This article lists some structural problems, and will be followed by other articles describing solutions for some of these cases. - Why are you using BBCodes? The discussion on my blog post "Do not use regular expressions for parsing" ended in a discussion about BBcodes in general. I just used them as an example to demonstrate why it it is impossible to parse such a language with regular expressions - and mentioned in a subclause, that I don't see any sense in using them at all. So why use them at all? - The long way to a semantic web HTML does not work, neither does XHTML. So how can this be solved without waiting years for better browsers? - Why active record sucks It is not really Active Record which sucks but the implied, perhaps just misinterpreted, common usage as an ORM (object relational mapping). If you want ORm do it right and use AR where it belongs to. - Do not try using regular expressions for parsing Often people try to use regular expression to parse markup like BBCodes or HTML. Why this will never work, or can work, and why BBCode suck in general. As a reference to reduce the amount of explanations on this topic for the future.