RSS

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

October 12th, 2009 - 3:42 pm § in Notes

Bash, Bad Interpreter

I recently came across: /bin/bash^M: bad interpreter: No such file or directory When trying to run a bash script that someone else had edited. This most commonly happens on UNIX systems if the file has been edited on MS-DOS or Mac. The cure for this is to run a simple perl script: ?View Code BASH1 [[...]

October 9th, 2009 - 2:18 pm § in General

New Project: vBulletin-Bridge

Whilst working on FetchMP3 I wanted to create a bridge between the forum membership system and that of the main site’s. So a lot of writing later the vbulletin bridge was born. It has many of the features any membership system would need such as:[...]

October 8th, 2009 - 4:32 pm § in General

Under Construction!

Its been a long time coming but I’m finally re-developing my site, I’ve been pre-occupied recently with the latest project I worked on, FetchMP3, but I’m now finally getting my act together and adding content etc. Most of the portfolio has been updated now but the main content is s[...]

October 7th, 2009 - 2:31 pm § in Portfolio

About Me

Hi. I’m Sam Cleaver, a first year student at Coventry University in Electrical Systems Engineering. I’m also a web developer with almost 7 years experience in programming. I can code in HTML, CSS, Javascript, AJAX (jQuery), Perl, PHP, MySQL in addition to server system administration. I [...]