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