Tutorials

  • aim
  • bebo
  • blogger
  • Del.ici.ous
  • DiggIt
  • Facebook
  • friendfeed
  • Google Bookmarks
  • linkedin
  • Mixx
  • MySpace
  • netvibes
  • Newsvine
  • Google
  • StumbleUpon
  • Technorati
  • tumblr
  • Twitter
  • Andy Sharman's Joomla Sociable Module
  • wordpress
  • Yahoo
  • yahoobuzz


Although I believe in opensource I do have bandwidth bills, if you like what you're using why not chuck me a couple of GBP/USD/EUR


Home / PHP

PHP hints/tips/solutions by Andrew Sharman

PHP tutorials/snippets/examples/tips etc can be found under here...

How to setup a blog...

Monday, 28 September 2009 07:10

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.

   

Looping through variables using concatenation with PHP

Saturday, 25 July 2009 14:22

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


   

Wordpress display/hide child LI tags on menu with PHP

Monday, 02 March 2009 21:24

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.

   

Dynamic RSS feed using PHP and MySQL

Monday, 23 February 2009 18:07

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.

   

PHP strip individual keys and shunt array

Tuesday, 03 February 2009 19:15

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.

   

Matching colours to image colours with PHP

Tuesday, 27 January 2009 22:20

Back in June/July 2008 I was around looking for a job as I was just finishing my degree, and I had an intreaging test given to me as part of a preparation to an interview in London (which I didn't goto in the end) but I thought I would share how to do it with the world in hope it may help someone else in the future. Albeit clunky, and not overly effective it will retrieve the most popular colours within a specified image, and then based on that I attemped to make an algorithm which then chose a colour relative to the colour code of the most popular colours used in the picture.

   

My First PHP Tutorial - Beginning PHP

Friday, 07 November 2008 19:54

In order to really get back to basics and almost learn PHP from scratch again in order to get back into the mindset of a beginner who wants to learn PHP because of an interest I decided rather than most beginners guides which assume programming knowledge or experience I am going to assume none. This way even the most beginner of programmers can hopefully find this tutorial helpful in their quest to better themselves in the future, for this guide your going to need:

   

 

 


 

All content is copyrighted to udjamaflip.com 2009-2010, All rights reserved.