Quantcast
Channel: Phil Bayfield » PHP
Browsing all 10 articles
Browse latest View live

Image may be NSFW.
Clik here to view.

WordPress Plugin – Further deveopment

Now that I have a very simple working plugin it’s time for a little clean up. Before I start adding addition functions and build additional features in messy procedural style it makes sense at this...

View Article


Image may be NSFW.
Clik here to view.

WordPress Plugin – Database integration

The next step with the plugin is to add some database integration so the plugin options can be stored in the WordPress database. This is really simple as the API provides funtions for this in the form...

View Article


Image may be NSFW.
Clik here to view.

WordPress Plugin – Admin options page

The next step following the database integration is a simple settings page to change the plugin options. This is achieved with another hook to add an item to the menu in the admin area: [code...

View Article

Image may be NSFW.
Clik here to view.

WordPress Plugin – Final tweaks

The plugin is now pretty much finished, there are certainly other options that could be added such as page summaries via AJAX, custom image sizes for specific preview etc but for now the only thing...

View Article

Image may be NSFW.
Clik here to view.

WordPress plugin for Thumbshots.org/Thumbshots.com website previews

I have now published my Thumbshots plugin for WordPress which is available here.

View Article


Image may be NSFW.
Clik here to view.

Today is a confusing day for 32 bit PHP

As many people probable know, there are some glaring inconsistencies between 32 bit and 64 bit PHP, especially when it comes to large numbers and floats. For some reason, best known to the PHP...

View Article

Image may be NSFW.
Clik here to view.

Web server benchmark PHP – Apache vs Nginx vs Lighttpd

This is a quick benchmark of the 3 major *nix web servers, to see which gives the best performance. Test system: Hardware: vps247 cloud VPS node, 512Mb ram. Software: Ubuntu 10.10 RC (kernel...

View Article

Image may be NSFW.
Clik here to view.

The most awesomest design pattern, ever to exist and that ever will exist!

At my current day job, someone came up with this design pattern and has implemented it in almost every class throughout the entire application, there are probably close to 100 implementations of this...

View Article


Image may be NSFW.
Clik here to view.

New features in PHP 5.4

The next iteration of 5.4 looks like it’s more focused on cleaning up the language than features. It appears many of the previously deprecated functions are now, as promised, removed completely. As...

View Article


Image may be NSFW.
Clik here to view.

Recursively remove/delete a directory in PHP using SPL components

File system management is not the most common use case for PHP, but in writing a command line tool today I was surprised to find that PHP doesn’t have a function to recursively remove a directory (I...

View Article
Browsing all 10 articles
Browse latest View live