PHP

Buy me a beer or a book?

amazon PayPal - The safer, easier way to donate online!

28 Sep 2009
07:10am

How to setup a blog...

As most of the traffic knows coming to this site, they have read in the papers about my story of taking on a giant company with my own blogging and beating them in Google for certain search terms in order get some attention from them to get my complaint resolved. Although a website like this does take time, and costs money I am going to explain two ways of creating a blog firstly in this post a simple way of setting up a free blog, and then later how to create a more advanced blog and the benefits of software choices.

Read more »

25 Jul 2009
02:22pm

Looping through variables using concatenation with PHP

Recently a friend was given the task of ordering a group of variables that would be similiar to this:

 

Group of ordered PHP variables
1
2
3
4
$var1 = 10;
$var2 = 20;
$var3 = 30;
$var4 = 40


Read more »

23 Feb 2009
06:07pm

Dynamic RSS feed using PHP and MySQL

Recently I have been working a lot with RSS feeds, and they are becoming a more globally used plugin or addon onto any website, I regularly use premade plugins for CMS's such as Joomla or Wordpress to enabled RSS feeds to be automatically be added to posts, dependant upon categories or categories. Anyway, it is quite bland out there as to the stages you need to perform in order to make a custom RSS feed for yourself which is standards compliant and fully customisable from an admin panel. Here is a class I came up with which allows multiple feeds to be generated by the same file.

Read more »

17 Feb 2009
08:42am

Wordpress display/hide child LI tags on menu with PHP

Although I didn't make this code I still feel it needs to be in the knowledge base area rather than the links section as it needs to be available to search the site for it, anyway I was basicallly finding it quite hard to find a wordpress plugin which allows the LI/UL tags to automatically hide depending on wether their parent element is selected or not, kind of like an accordion effect but without the javascript.

Read more »

03 Feb 2009
07:15pm

PHP strip individual keys and shunt array

As mentioned at the end of January I had come across the problem where its very difficult to find a function online which basically loops through an array and removes the specficied key, but also shunts down the rest of the array so there isn't empty keys leftover.

Read more »

Free Downloads