City , Country and zipcode lookup via Ip address in PHP

July 31, 2009

A lot of times i have seen newbies and even PHP pros struggling to find any method of implementing zipcode and country lookup !
This can be easily achieved with the help of Maxmind Geo API, They provide a exhaustive DB lookup functionality of IP adress . Which can be further translated into City, Country and [...]

Read the full article →

Database basics: Connect to a Mysql Database

July 30, 2009

This tutorial is part of the Tutorial Series Database basics !, Let us learn and try to understand how connecting a mysql database works in PHP
Before learning how to connect to a database we should know how to create a database , For creating a database there are several methods that we can [...]

Read the full article →

Html Pop up page using javascript

July 29, 2009

Html pop up pages are legacy ways that are used across all the web for showing small snippets of information , However they are fastly replaced via Lightbox nowadays !
Here in this tutorial we will be creating a popup javascript function which can be called multiple times on a webpage for creating different popups !, [...]

Read the full article →

How to create a Simple Php Contact form

July 28, 2009

Here I am going to discuss a most common and I think one of most necessary component which every body require for their blog or site. So, friends here is the code of a simple contact form. how to create it and how to handle it. Generally it is required that if somebody is filling [...]

Read the full article →

Spell Check in PHP with Yahoo API

July 28, 2009

Spell Check is a very nifty feature that a developer need to know , Especially when creating htaccess rewrite rules dynamically you will not want your URL’s to have index with wrong spellings , As this will hamper your SEO performance.
Here is a very easy tool that a developer can implement in their applications for [...]

Read the full article →

Php Login System – Login Management and Login Control Tutorial

July 25, 2009

One of the most basic and most common question that i encounter via Php newbies is how to make a login system in PHP , The login, registration and authentication are very basic and yet very important tools that a php programmer should posses !
For this tutorial there are few prerequisites:-
1) You should be able [...]

Read the full article →

Redirect old blog traffic to new blog via htaccess

July 18, 2009

Recently my good friend honey needed help on redirecting his popular old blog http://honeytech.wordpress.com to his new blog http://www.honeytechblog.com .
He needed to save his old permalinks and redirect his wordpress.com traffic  onto the pages of Honeytechblog. The obvious way to use was a .htaccess file.
So, once he has redirected his honeytech.wordpress.com to a sub domain [...]

Read the full article →

Friendfeed API implementation in PHP

July 18, 2009

Recently for a client i needed to make a friendfinder script via Friendfeed API !, On giving a initial look at their API homepage , i was happy to see that Friendfeed provides client libraries for PHP development and their API is REST based.
However, on going through the PHP Client library i realized that they [...]

Read the full article →

Check file existence in php

July 14, 2009

Php developers need to do a lot of file operations , Work like cache building, logs etc all required file operations functions in php.
www.php.net/file_exists is a handy tool for existing file on to the webserver.
here’s a example code:-

< ?php
$file = ‘/path/foo.txt’;
if (file_exists($file)) {
echo "$file exists";
} else {
echo [...]

Read the full article →

Php Sessions

July 14, 2009

The problem with the HTML is that it cannot retain the values of variables from one page to the next page. All the data values of the previous page are forgotten when the next page is reloaded. To solve this problem, PHP is used. PHP allows transferring data values from one page to the next [...]

Read the full article →