RSS

July 10th, 2010 - 6:15 pm § in Notes

PHP Compilation (Cannot find -lltdl)

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.

libltdl3-dev

June 11th, 2010 - 3:14 pm § in General

phpGSB – PHP Google Safe Browsing

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[...]


June 6th, 2010 - 4:48 pm § in General

[PHP] TLD List, Inc. Level 2 & 3

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 [...]


April 13th, 2010 - 4:04 pm § in Notes

PHP Search and Replace Directory Recursively

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 fil[...]


April 2nd, 2010 - 2:00 pm § in General

HTC Desire Release Dates

W ith the launch of the HTC’s new Desire imminent I was hoping to get my hands on one sooner rather than later. Unfortunately it seems that due to the current (but surely not unexpected?!) high level of demand the main release date for the UK has been pushed back to April 12th for standard [..[...]


March 18th, 2010 - 1:17 pm § in Notes

GoDaddy mod_rewrite Hell

Whilst trying to install a piece of software on a GoDaddy hosted account I noticed that mod_rewrite variables were simply not being passed to the correct pages. When digging a bit deeper I found that it was effectively ignoring extensions in URLs and just displaying the file with the extension. i.e.[...]


March 9th, 2010 - 2:53 pm § in Portfolio

Jokepants

Web development firm Webslash approached me with the task of integrating their design for a new joke sharing website, Jokepants, into an existing script called FMyScript. FMyScript is a story sharing script. This was a relatively quick project as the script was already coded and just required modifi[...]