RSS

Posts Tagged ‘php’

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

May 21st, 2010 - 11:32 am § in Portfolio

Decor Scene

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

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

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

March 5th, 2010 - 7:24 pm § in Portfolio

City Coupons

City Coupons, a very recent project, in essence is a full content management for coupons. Using the system you are able to add printable, SMS and viewable coupons to your website. In addition to this, the system has a range of other features to offer. Started at the beginning of November ’09 a[...]

November 3rd, 2009 - 3:53 pm § in General

MultiPart E-Mail Code for PHP (Text and HTML)

Whilst trawling through some of my ultra-old posts on various forums I’ve found this nifty little piece of code that enables you to send in both HTML and TEXT form. This is useful for clients that cant display HTML (they will display the text instead). I developed it back in 2007 so it may nee[...]

October 20th, 2009 - 5:59 pm § in Notes

[PHP] Get current time in milliseconds

I recently needed to get the current time in milliseconds, of course this can easily be retrieved using microtime() however I needed the entire number in digits, not in decimals with seconds seperately etc. Heres how: ?View Code PHP1 2 3 $timeparts = explode(" ",microtime())[...]