PHP development
PHP is a server-side scripting language which is used to produce dynamic websites, which I’ve been using since the start of my web development career. Working as a PHP developer on MPORA (built using the MVC framework CodeIgniter) I was required to write Object Orientated code, producing features such as social networking functionality, wall messaging and private messaging systems.
I regularly write modules and extensions for PHP-driven content management systems such as Symphony, Drupal and Wordpress, and also write MySQL queries.
Please take a look at my latest PHP blog posts and portfolio of PHP websites, or get in touch if I can help with a web development project.
PHP blog posts
I often develop sites on my local machine before committing and transferring to a staging/live server, so during the development phase most of my sites reside on a URL similar to http://localhost:8800.
...
- Date
- 17th May 2011
- Tags
-
PHP, WordPress
Read more »
I was just developing a Block View in Drupal for a freelance project, where the markup on the first row was different to the subsequent rows. I needed to change the markup to display an image and teaser, while the subsequent rows just has the title (which links to the node) and published date.
...
- Date
- 13th April 2011
- Tags
-
Drupal, PHP
Read more »
Being able to sort a view using URL parameters seems like the most basic functionality, but it seems this is not possible using using views without some kind of module. I have to say Symphony handles this much better than Drupal.
...
- Date
- 10th March 2011
- Tags
-
Drupal, PHP
Read more »
I often like to use template files to alter the HTML of a view to cut down on the masses of redundant markup that Drupal creates. But I just came across a problem where I was unable to get the file path of an image in my content type, despite the fact that the image was output in the view settings.
...
- Date
- 8th March 2011
- Tags
-
Drupal, PHP
Read more »
I just got stuck trying to add a raquo (») to a submit button using hook_form_alter in Drupal.
I tried altering the text of the submit button as follows:
$form['submit']['#value'] = "Submit »";
$form['submit']['#value'] = "Submit »";
but both of these methods resulted in the ampersand being escaped in the HTML
...
- Date
- 21st February 2011
- Tags
-
Drupal, PHP
Read more »
I just had a problem with the date field in an exposed filter in a Drupal view, using the popup form type. Regardless of the site configuration date format, the exposed filter will always default to the format Y-m-d. I ended up fixing this by creating a new module, and wrote a simple function using the form_alter hook
...
- Date
- 18th February 2011
- Tags
-
Drupal, PHP
Read more »
I have had to develop a couple of Drupal sites recently where I needed to grab the array of Primary Links and do something bespoke with it. Drupal provides functions for this, but they return so much data it can be difficult to work with it, particularly when you have large menus.
...
- Date
- 15th February 2011
- Tags
-
Drupal, PHP
Read more »
Excuse the title.
In my last post, I talked about using Markdown instead of a WYSIWYG editor. But one thing that TinyMCE and CKEditor does provide (with extensions) is the ability to upload images into the content area of a site.
...
- Date
- 28th December 2010
- Tags
-
Markdown, PHP, Symphony
Read more »
I have been in several situations where I have wanted a “complex data source” in Symphony. A couple of examples of what I mean by a complex data source are
...
- Date
- 11th December 2010
- Tags
-
PHP, Symphony
Read more »