May 13, 2010
Posted in Personal, Wordpress | 0 comments
As default, on my account with 1and1 hosting in the UK, PHP4 is king. If you want to use PHP5, you need to change your file suffix from ‘.php’ to ‘.php5′.
Without doing so you may get the following type of errors:
Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' use-google-libraries.php on line 43
OR
Parse error: syntax error, unexpected T_ARRAY, expecting ‘)’ in /homepages/xx/xxxxxxxxx/xxxxx/xxxxxxxxxx/wordpress/wp-content/plugins/popeye/popeye.php on line 210
However, there is another way around it. A much better way. For example, if you are running an install of WordPress, many of the plugins will want to use PHP5. To fix this on your 1and1 shared hosting is simple: change the .htaccess file.
Add the following line to the top of your .htaccess file, which lives at the root of your wordpress installation:
AddType x-mapp-php5 .php
And voila!
May 11, 2010
Posted in Plugins, Wordpress | 0 comments
After seeing and article, an attack of whin has led me to geotag my posts from my iPhone 
[popeye ids='273,275']
I’m using the WordPress iPhone app, which you can download from iTunes, and the associated plugin Geolocation, built by Chris Boyd.
It’s not a megatool, it’s very simple:
- iPhone: adds customs geotags, longatude and latitude to your post.
- Geolocation: reads the tags, inserts a link, and when you hover over it, you see a map
It’s nice not to have too much to think about. If you want more more power, there is always WP Geo and Geotag which are similar and allow you to create custom maps, with your own markers etc.

May 9, 2010
Posted in Wordpress | 1 comment
I want to take screenshots of my work, and post them on the portfolio page of my site.
The template that I’m using is one that I found for free from smashingmagazine.com, and has such has it’s own custom way or showing my portfolio.
What I’ve quickly realised is that I need to take my screenshots at the correct ratio, or they get squashed/stretched, as opposed to just showing the top left of the image, unstretched.
Each portfolio item is required to have an image to fit in the ‘polaroid’ styled div, that is 290(w) by 230(h). This being the case, all my images need to be of the ratio 1.261:1.
To calculate the right height, I do the following:
w / r = height
example:
1024 / 1.261 = 812
Simple, but important