14 Jun 2009

XML-RPC on the iPhone

Posted by kilbot | Filed under: News, Programming

This week I’ve been porting a simple J2ME mobile phone application to the iPhone. The J2ME application allows users to login and exchange data with a web application via XML-RPC, so naturally I was keen to use the same server-side scripts for the iPhone app. As far as I know, there is no no specific open source framework available for XML-RPC on the iPhone, but the folks at WordPress for iPhone have rolled their own which is available under the GNU General Public License, and with a little fishing around I was able to get it up and running in my own app. Basic instructions after the jump…
Read the rest of this entry »


10 Dec 2008

HTML Select list of all countries grouped by region

Posted by kilbot | Filed under: Programming

I needed an HTML select list of countries grouped by region, eg:

… and was surprised I couldn’t find one out there on the internet. So, with a *sigh* I rolled up my sleeves and created one. You can check it out it after the break. Merry Christmas :)

Read the rest of this entry »


3 May 2008

Using the image input type to post a form in IE

Posted by kilbot | Filed under: Programming

I had one of those ‘gotcha’ moments yesterday when testing a contact form I had made for a client. The issue (and fix) is painfully obvious once you see it, but it did leave me scratching my head for about an hour so I thought it was worth writing down.

The form worked as expected in Firefox, Safari and Opera (I develop on a mac), but when I tested in IE 6 & 7 nothing happened – you’d click the submit button but the form would not be processed… a rather serious usability issue you might say.

Read the rest of this entry »


20 Apr 2008

Public Webalizer stats for cPanel users

Posted by kilbot | Filed under: Programming

I like to give my hosting clients the ability to check their website statistics without having to log into cPanel. There is no native way to do this through WHM or cPanel so I have created a little Perl script to automatically make Webalizer stats public when a new account is created. If you would like to offer stats outside of cPanel, copy the following code into a file called postwwwacctuser and upload to your scripts folder, remembering to make the script executable. For more information on postwwwacctuser please see the cPanel/WHM Hooks page.

Read the rest of this entry »


14 Dec 2006

php_value max_execution_time

Posted by kilbot | Filed under: Programming

Add this to the .htaccess file if you are having troubles with php scripts timing out.


php_value max_execution_time      120