Why you should NOT use strip_tags()
In the world of Web 2.0, it’s becoming more and more common to allow users to submit rich text in comments, profile text etc. with the possibility of pimping it with HTML formatting.
This is of course a nice thing, because it makes it possible for the users to express themselves better, but you should [...]
Dompdf and special characters
When generating dynamic PDF documents in PHP I normally use the excellent TCPDF library, but in my last project I wanted to try out another library called domdf.
From the dompdf website:
dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) CSS2.1 compliant HTML layout and rendering engine written in PHP. It is [...]
Implementing PHPIDS in Zend Framework
Security is a very important part of an application, especially if the system handles sensitive data or requires high availability. In this post I’m going to show how to integrate PHPIDS, which is a fantastic Intrusion Detection System for PHP applications, in Zend Framework.
Setting up PHPIDS in Zend Framework
First of all, we need to set [...]
Using web scraping to extract information from websites
In today’s internet, when you want to extract information from a website you can usually get it by using some well defined API or by consuming an RSS feed. But when no such thing is available, you need to make use of another tool. Such tool could be Web scraping…