Chaining setter methods in PHP
PHP5 allows for method chaining as part of the OOP improvements over PHP4. This similar to how jQuery and other languages link methods together by passing the returned value to the chained method. This...
View ArticleConverting the first character in a string to lowercase using Python
In a previous PHP post I explained how to convert the first character in a string to lowercase using PHP 5.2.x. In this example I want to demonstrate how its done in Python and briefly discuss the...
View ArticleCreate a Google AdSense Word Press widget in minutes
You may of noticed that this blog now has two Google AdSense adverts in the right hand side bar. One is at the top (above the search widget) and the other is at the bottom (below the archives widget)....
View ArticleSolution to phpMyAdmin throwing a 404 error
After reinstalling phpMyadmin on Ubuntu 12.04 I found that the site was throwing a 404 page not found error. This post discuses how to fix the phpMyadmin install problem. Continue reading →
View ArticlePHP examples of returning a file extension from a string
Lets say you have the string 'index.html'. How would you go about returning only the file extension from this string? Would you use an inbuilt PHP method or a fancy string position trick or perhaps you...
View ArticleUpgrading PHP on HostGater
In this post I will show you how to upgrade PHP 5.2.17 to PHP 5.3.14 on HostGaters shared hosting platform using a .htaccess file. Continue reading →
View ArticleReplace WordPress search with Google Search
One of the biggest drivers on the web is searching for information and the largest search engine on the internet is Google. So why stick with the default search engine in WordPress which is, lets face...
View ArticleWhy do we have so many PHP frameworks
This morning I commented on a question in the Linkedin PHP Contractors Group. The questions was 'Why do we have so many PHP frameworks and more are yet to be released?' Here is my explanation Continue...
View ArticleAdding arrays together while preserving keys in PHP
In this post I will demonstrate how to add arrays together without losing or reassigning the arrays keys in PHP. This is handy if you want to combine two arrays which have defined keys. Continue reading →
View ArticleUpgrading PCRE From 7.8 to 8.13 on a Centos 6.3 VPS
A guide to upgrading PCRE from 7.9 to 8.13 on a Centos 6.3 VPS Continue reading →
View Article
More Pages to Explore .....