Archive

Archive for the ‘PHP’ Category

How To Get Real IP User In Facebook Application

February 22nd, 2010 Admin No comments

In general we will use “$_SERVER['REMOTE_ADDR']” to get the IP of the visitor, but this does not apply in Facebook, because it will only remove IP from the server itself Facebook. If you are a facebook application developer, then there are ways we can use to get the IP of our facebook application visitor.

Here is the code used in music applications online http://apps.facebook.com/mpthreeecho

$ip            = array_values($_SERVER);
$ip            = $ip[8];

Hopefully this brief article may help you in recording the statistics of your facebook application.

Change Adsense Publisher ID In Other Site With PHP and cURL

December 22nd, 2009 Admin 1 comment

This tutorial is actually a long time I write but only in the Indonesian language, and it is time to change it into English to be understood by more people.

Through the help of PHP and cURL, we will try to change the code from adsense publisher ID (adsense injection) which usually use the format “pub-1324123412341212“. 16 digits after the pub is the adsense code that will be changed into our publisher ID code. Here is a script that will be used:

Read more…

Categories: PHP, Tips & Tricks Tags: