Tag Archives: PHP

PHP Page basic page caching

One of the most useful things you can do in terms of performance is to cache the page you’re currently serving so that no code gets executed again and again when it isn’t needed. I’ve provided a sample below of … Continue reading

Posted in PHP | Tagged , , | Leave a comment

PHP Object to Multidimensional Array

Below is a piece of code showing how to transform an Object into a Multidimensional Array, there are quite a few functions in PHP that return stdClass objects such as some MySQL, JSON or XML functions. If it is a … Continue reading

Posted in PHP | Tagged , , , | Leave a comment

PHP Simple permission framework with Bitwise operations

Below is an example class of a basic permission framework with permissions worked out by using bitwise operations. This provides basic functions such as hasAccess() can() and permNeeded() I won’t be going into detail regarding binary math and why it … Continue reading

Posted in PHP | Tagged , , , | Leave a comment

PHP Configurable CD-KEY Format Validation

I’ve need this a few times, where I have to take input of a CD-KEY in a specific format and it needs to be checked to see if it’s in valid or not before proceeding. Normally – I would just … Continue reading

Posted in PHP | Tagged , , , | Leave a comment

WordPress 3.3 Beta 1 released

Straight in from the WordPress.org website… “WordPress 3.3 is ready for beta testers. As always, this is software still in development and we don’t recommend that you run it on a production site — set up a test site just … Continue reading

Posted in Wordpress | Tagged , , | Leave a comment

Turn PHP classes in to a RESTful API with Restler

The Restler packer is a RESTful API server framework that is written in PHP that aids your mobile / web / desktop applications. A framework, but with a difference – Restler is all here to bend and mend to your … Continue reading

Posted in PHP, PHP frameworks, web developement | Tagged , , , | Leave a comment

5 Useful WordPress template hacks

Ever since I started using WordPress I’ve been learning some quick-neat tricks to get the functionality I want. Some useful WordPress ‘template hacks’ are below that I have used in the past, ranging from custom fields to printing posts from … Continue reading

Posted in PHP, web developement, Wordpress | Tagged , , | Leave a comment

PHP – Get page links (using the DOMDocument)

PHP has a very useful library – The DOM Document. Using this you’ll be able to get the source code of a page and go through each element of the HTML filtering out what you need and don’t need, If … Continue reading

Posted in PHP | Tagged , | Leave a comment