Archive for category: PHP

Facebook Reveal Tab Tutorial

Since Facebook has deprecated XFBML, there are several features that are not working with the old FBML code. There is one very common feature/technique used among Fan Pages that is Reveal Tab. In this technique you show different screen to Non-Fans and different screen to Fans. In the FBML days you could have done with few lines of FBML code, but now that is not the case.
Read more

Read more

Drive PHP with break and continue

Break and continue are two very common jobs in almost every programming language. Both play their role somewhere in loops. Loop may be for, foreach, while, do...while or switch.

In this article, I’ll be using for each loop to demonstrate the concept of break and continue. They work in same way in almost every programming language. break will be your friend to save your loop from more iteration and continue will be really helpful to boost your logic.

Read more

Read more

PHP Basics for Beginners

This article aims to serve for beginner PHP developers but those who are comfortable with PHP will also find this article useful. Basically, I’ll tell you the difference between some of PHP commonly used functions/features. By the end of this article you will have a clear difference among:

  • include VS require
  • include_once VS include
  • require_once VS require
  • echo VS print
  • Single quote VS Double quote

Apparently all functions in each above point work in similar fashion. However, they are slightly different from other. Continue reading to explore the differences.

Read more

Read more

Facebook Application From Scratch – 2

This is second part of our Facebook Application Development from Scratch series. You may read part one of the series here. In this part we will learn, how to get authentication for your Facebook Applications. More specifically, we will learn:

  • Creating an instance of a PHP Class
  • Getting session information of Facebook logged-in user
  • Getting User ID of Facebook User
  • Getting login URL for authentication purpose
  • Using FBML redirect tag

Read more

Read more

AJAX Currency Converter with Google API

No doubt, Google is a magical search engine. Google also provides many APIs to be incorporated in your application. Today, we will use Google’s hidden currency conversion API. Why hidden? Because there is no official documentation for it.

Read more

Read more
© Copyright - Tech Mug