Quantcast
Channel: Peter Fisher » php
Browsing all 10 articles
Browse latest View live

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 Article



Converting 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 Article

Create 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 Article

Solution 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 Article

PHP 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 Article


Upgrading 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 Article

Replace 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 Article

Why 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 Article


Adding 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 Article


Upgrading 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
Browsing all 10 articles
Browse latest View live




Latest Images