Category Archives: PHP

use example.com instead of localhost on your development server

I have xampp (apache, mysql,php) development server on my windows 7, I’m developing a PHP application using a modern php5 framework that has cool URL routing, I was having some problems getting the routing to work the way I wanted because http://localhost or http://127.0.0.1 doesn’t have an extension like any domain (eg: .com , .net) [...]

CodeIgniter Captcha & Session – How to by Example

Today I was in need to add captcha spam protection to a form I have in a Codeigniter app I’m building for a client, I have looked at Codeigniter captcha helper but the example was not clear enough and was showing that you must use database and that was something I did not want. I [...]

PHP search facebook posts using Graph API (JSON)

Facebook offers a flexible and easy to use API called Graph, graph is simply a URL that once you open in a browser or within your code it return a JSON (JavaScript Object Notation ) string, in this tutorial you will learn how to use php and facebook graph API to access public posts and [...]

CodeIgniter time ago – How to get it done!

In today’s web, its much better to use x hour ago, day ago , month ago , a year ago etc. CodeIgniter has a built-in function in date_helper that allows you to convert any date/time to “xx Time ago” style, its called timespan() it takes 2 arguments the first one is the date/time you want [...]

Best 3 Tutorials to help you learn php OOP

I know that you maybe hate object oriented programming (OOP) because you think its full of complicated syntax and other roadblocks, and it is not easy to find tutorials that will help you understand oop really well, I have googled around and selected the best 5 – easy to understand PHP OOP tutorials that will [...]