0 comments / June 27, 2014

Find the difference between two dates

This small php snippet will help you to find the difference between two given dates


2 comments / June 24, 2014

Prevent submit on page refresh

Reloading the page after form submission in POST method, browser will always display a warning whether it can resend same data to server or not. For average user, this information is bit technical and it might confuse him.


0 comments / June 03, 2014

How to generate seo friendly urls

This simple function gives you an idea how to generate more seo friendly urls like the one used in webdevelopmentscripts.com


2 comments / April 23, 2014

PHP Namespace Basics: Beginner view

Alike many other languages like Java and C++, PHP introduced Namespaces concept in version 5.3. PHP implementation of namespaces is somewhat similar to c++, because most of the syntax and design are borrowed from c++. So what namespaces holds new for you?


0 comments / March 22, 2014

Clear previously echoed or printed items in php

It is best to print only required data which should be displayed to users, but sometimes we need to remove previously echoed or printed items based on certain condition. How do you do this in php?


2 comments / March 18, 2014

Google pagerank checker php script

Google ranks ( between 0 to 10 ) every page of your website. Mostly these ranks depends on number of back links to that page. Highly ranked pages will get higher position in the search results. Find out how to retrieve Google pagerank for given url using php


0 comments / February 06, 2014

Last executed query in MySQL

MySQL has various log system that can help a user to debug and improve query performance. So find out how to list last executed queries in MySQL.