Our Sponsors

Tuesday 5 July 2011

15 PHP Frameworks

Stuck on what PHP Framework to use for an upcoming project?

Look no further!

Frameworks are the streamlined flow of PHP codes meshed up and baked for you to just use and implement. PHP frameworks are the result of codes written by many talented developers around the world. In other words, PHP frameworks help to promote rapid application development (RAD), which saves you time, helps build more stable applications, and reduces the amount of repetitive coding for developers.

Top 7 PHP Security Blunders

Brilliant article about PHP Security. Good reading for newbies and pros alike :)

Part 1

Part 2

Friday 17 June 2011

3 Brilliant PHP Books

These books are just a few of the thousands of books available covering all aspects of PHP.

I believe these 3 are the best of the bunch and cover the essentials.

PHP MySQL Web Development

Beginning PHP MySQL Professional Development

Pro PHP Security

Wednesday 15 June 2011

Yo dawg...

I heard yo like driving, so we put a car in yo van, so yo can drive whilst yo drive



Source: http://jalopnik.com/5812119/how-did-this-car-get-inside-of-this-van

Tuesday 14 June 2011

PHP Framework Benchmarks

So, when I recently started doing a new project, I asked myself "What PHP Framework should I use?"

I was suggested CodeIgniter - its fast, easy to get to grips with and pretty lightweight file size-wise.

Speed is a big thing for me, and I know Frameworks like Zend are terribly bloated.

I found this nice article that discusses the different Frameworks and benchmarks them. It's pleasing to see that CI comes in second on this list :)

PHP Frameworks Benchmarked

Monday 13 June 2011

Calculate distance between two points

So whilst working with Google Maps lately, I found this super-useful snippet that calculates the distance between two points, using longitdue and latitude.

Code:
function distance($lat1, $lon1, $lat2, $lon2, $unit) { 
$theta = $lon1 - $lon2;
$dist = sin(deg2rad($lat1)) * sin(deg2rad($lat2)) + cos(deg2rad($lat1)) * cos(deg2rad($lat2)) * cos(deg2rad($theta));
$dist = acos($dist);
$dist = rad2deg($dist);
$miles = $dist * 60 * 1.1515;
$unit = strtoupper($unit);

if ($unit == "K") {
return ($miles * 1.609344);
} else if ($unit == "N") {
return ($miles * 0.8684);
} else {
return $miles;
}
}

Usage:
echo distance(32.9697, -96.80322, 29.46786, -98.53506, "k")." kilometers";

Credit: PHPSnippets.info

Sunday 12 June 2011