PHP

Posts about the server side scripting language PHP

PHP Password Functions In 5.5

Tuesday, March 4, 2014 - 23:14

New in PHP 5.5 is a group of functions that deal with password hashing and verification. This is such a common thing for PHP applications to do that it was decided to include it into the core of PHP. They effectively solve the problem of hashing and comparing passwords that just about every PHP developer has implemented at one point or another.

There are only a few functions available but they provide all of the functionality needed to create a hash value from a password, check if the hash is valid and to check if the password hash needs to be recreated.

Category: 

PHPNW13: A Review

Monday, October 14, 2013 - 13:58

PHPNW13 is the 6th annual PHPNW conference, organised by members of the PHPNW community and Magma Digital. This year the conference saw around 420 people (with myself as a helper) at the conference, which was held in the Manchester Conference Centre.

My involvement in PHPNW13 started a few months before the actual conference. When the call for papers closed back in June I spent a weekend reading the submissions so that we could pick which sessions would be at the conference. Out of the 183 papers submitted (20 more than last year) we had to pick just 35 or so sessions that would be presented at the weekend. The final selection of talks was really good and judging by the comments and rating on joind.in they were well received by the other conference attended as well.

Category: 

The Monty Hall Problem In PHP

Tuesday, September 24, 2013 - 10:10

The Monty Hall problem is a counter intuitive problem in probability mathematics that deals with picking the right prize from a set of three doors. The problem is named after the television celebrity Monty Hall and is loosely based on the USA game show Let's Make a Deal.

Category: 

Sieve of Eratosthenes In PHP

Saturday, July 6, 2013 - 00:07

The sieve of Eratosthenes is named after Eratosthenes of Cyrene who was a Greek mathematician who devised a mechanism to find a sequence of prime numbers using a simple algorithm.

Normally, looping through a list of numbers and finding the primes can be an expensive process. The seive of Eratosthenes is one of the most efficient way of working out all of the smaller prime numbers below (below 10 million or so).

Category: 

PHPNW13 Call For Papers And Blind Bird Ending Soon!

Tuesday, June 18, 2013 - 23:15

The 5th annual PHPNW conference is set for October 5th and 6th this year and preparations for the Manchester conference are in full swing. If you want to talk at the conference then the call for papers is set to close on the 23rd June. The speaker package includes accommodation for the Friday and Saturday night as well as a speakers dinner on the Friday night.

Category: 

Using XPath With HTML Files In PHP

Thursday, March 14, 2013 - 09:53

I recently have started looking into making myself a PHP Zend Certified Engineer and after doing a bit of research I found that the standard PHP string and array functions appear to be a large part of the exam material. So as a starting point (and for future revision) I decided it might be a good idea to create a revision sheet for those functions.

Category: