Posts tagged 'php'
Find the difference between two dates
This small php snippet will help you to find the difference between two given dates
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.
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
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?
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?
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
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.