How to choose a Password?

Hard to guess, easy to remember is the key rule. While choosing a password one should always remember that it should not be too obvious for people who know you to guess it out. It generally said that your password should be your name, last name, nick name, username etc. Most sites now prevent you … Read more

How to Check Domain Name availability in PHP

You can check domain name availability of a domain name by using following code. If you want to check multiple domains for same extension modify this code by calling function again. To check different extensions you need to specify Server Name and Matching Criteria for that extension. Pass values in $server and $nomatch [php] <?php … Read more

How to do Pagination in PHP easily

Pagination in PHP is easy and you can show pagination by following code. There are 4 files (don’t go to the number of files, separate sfiles have been created so that you can easily understand the code), I could have combined it in 1 but 4 seems to be better. These are: index.php, paging.php, function.php, … Read more

Facebook Apps – Get User’s Friendlists

For your apps see User Friendlists and names. Use these 2 files: index.php lists_data.php For index.php, [php]<?php $colnams=" flid, name "; $pgno="1"; $defaultresultrownum="5"; $lowerlimit=($pgno-1)*$defaultresultrownum; $upperlimit=$defaultresultrownum; $searchtbnam="friendlist"; $wherequery = "WHERE owner=’$fbuid’"; //$wherequery = ""; $resultsort="name"; $resultsortorder="asc"; $orderby="ORDER BY $resultsort $resultsortorder"; //$limit="LIMIT $lowerlimit,$upperlimit"; $fql    =  "SELECT $colnams FROM $searchtbnam $wherequery $orderby $limit"; $param  =   array( ‘method’     => … Read more

Facebook Apps – Get User’s Friends and List

For your apps see User Friend Ids and in which Friendlist friend is. Use these 2 files: index.php friendlists_data.php For index.php, [php]<?php $colnams=" flid, uid "; $pgno="1"; $defaultresultrownum="5"; $lowerlimit=($pgno-1)*$defaultresultrownum; $upperlimit=$defaultresultrownum; $searchtbnam="friendlist_member"; $wherequery = "WHERE flid IN (SELECT flid FROM friendlist WHERE owner=’$fbuid’)"; //$wherequery = ""; $resultsort="uid"; $resultsortorder="asc"; $orderby="ORDER BY $resultsort $resultsortorder"; //$limit="LIMIT $lowerlimit,$upperlimit"; $fql    =  … Read more