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
A collection of PHP based musings from myself and interesting articles I find on the Internet.
Our Sponsors
Friday, 17 June 2011
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
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
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:
Usage:
Credit: PHPSnippets.info
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
Some PHP Best Practices
nb - Some tips may be contradictory, so please use these at your own risk :)
Saturday, 11 June 2011
Massive List of PHP Articles
Below is a huge list of links to various PHP related articles that should help you out when starting a freelance or personal project.
For Beginners
For Beginners
- 25 Resources to Get You Started with PHP from Scratch
- Beginners PHP Tutorial – Using Cookies
- PHP for Beginners: Simple Login, Logout, and Session Handling
- Tutorial: Writing your first PHP script
- Video Tutorials To Start Learning PHP
Friday, 10 June 2011
Ion_Auth for CodeIgniter
Today I am promoting the awesome third-party library, Ion_Auth, for CI.
It is a fully fledged authorisation library, allowing you to set up secured areas, user groups, profiles, the lot!
I have used it on several projects and it has yet to let me down.
http://codeigniter.com/wiki/Ion_Auth_-_Lightweight_Auth_System/
It is a fully fledged authorisation library, allowing you to set up secured areas, user groups, profiles, the lot!
I have used it on several projects and it has yet to let me down.
http://codeigniter.com/wiki/Ion_Auth_-_Lightweight_Auth_System/
Tuesday, 7 June 2011
Adventure Game Update
I haven't had chance to work much more on my PHP Adventure Game as of late, however I will be free to start afresh on this project soon.
Due to my new found love for CodeIgniter, I will be rebuilding the game using this framework. Hopefully I can get to the same point I was at before, much quicker and the whole project itself will be neater and more robust :)
Due to my new found love for CodeIgniter, I will be rebuilding the game using this framework. Hopefully I can get to the same point I was at before, much quicker and the whole project itself will be neater and more robust :)
CodeIgniter
So I have been using CodeIgniter (CI) for the past 7 months and I am more then impressed!
Very well maintained Framework, with lots of available additional libraries and modifications by fellow CI Community peeps.
I am currently finishing a project using CI v1, however v2 has been released and is a bit tighter.
Stay tuned for more insights :)
Very well maintained Framework, with lots of available additional libraries and modifications by fellow CI Community peeps.
I am currently finishing a project using CI v1, however v2 has been released and is a bit tighter.
Stay tuned for more insights :)
Subscribe to:
Posts (Atom)