PS:
http://www.phptutorials.de/index.php?article=12&tpl=2