When compiling PHP from source (in my case version 5.3.2) on CentOS 5.4 I kept getting the following error when trying to compile with mcrypt:
"/usr/bin/ld: cannot find -lltdl"
This seems to be due to a missing development library with the obscure name of libtool-ltdl-devel to fix this simply use:
yum install libtool-ltdl-devel
Which should include the package along with several dependencies.
For the past couple of weeks I’ve been working on a PHP system that uses the Google Safe Browsing API to download blacklists and perform lookups on them with the goal of limiting the destructiveness of phishing and malware websites. Its still in a very early development phase (alpha) and there is still a lot left to be done but… it works! I’ve started Continue reading phpGSB – PHP Google Safe Browsing
Whilst working on a new open-source project I needed to be able to be able to detect/remove the TLD’s from hostnames. This is no easy task algorithmically as example.co.uk (level 2) is just as valid as example.com (level 1) which is also just as valid as example.bob.shiga.jp (level 3). I came across a project from Mozilla that lists all TLDs. This isn’t the easiest format to work with each time you want to test hostnames. So I’ve built an auto-updater that will sort and serialize the domains into a format like:
Continue reading [PHP] TLD List, Inc. Level 2 & 3
Decor Scene was a smaller, simpler project I worked on. Mike from Decor Scene tasked me with creating a simple, user-friendly website that gave Decor Scene, a family run DIY store, a web presence. For the main design I approached a company I had recently worked with Webslash to design a simple, elegant and modern website that made an impact on any user who visited. After a few drafts we were there and it was down to me to slice the design and code it. As the site itself i Continue reading Decor Scene
On a message forum I regularily visit a member was having issues with code being placed in multiple files that he wanted to remove or change without having to edit each and every file manually. For this I created a search and replace function which will recursively search the directory and every file Continue reading PHP Search and Replace Directory Recursively