Monday 25 April 2011

Facebook FBML will not work now

Hello,


As per new changes on Facebook, we will no longer be able to use static FBML application.

Also the Facebook will no longer support FBML Page Tab Type with Canvas Type iFrame application. So all existing application using this will not work.

And the Facebook roadmap suggests to change all the static FBML applications to iFrame applications.

Starting from March 11, 2011 there are changes in the coding pattern of iFrame application and Facebook has shut down FBML and Static FBML applications.

You might want to inform the client about this if their Facebook pages / tab / application are built using static FBML or iFrame application with Page Tab Type = "FBML" will not work and resolve this issue.

However, these tabs will continue to work until the next Facebook update.

Please refer: http://developers.facebook.com/blog/post/462/

Monday 18 April 2011

Friday 15 April 2011

CCleaner

CCleaner is the number-one tool for cleaning your Windows PC. It protects your privacy online and makes your computer faster and more secure.

http://www.piriform.com/ccleaner

htaccess http to http www

Options +FollowSymLinks
RewriteEngine on
RewriteCond %{HTTP_HOST} ^arpan.com [NC]
RewriteRule ^(.*)$ http://www.arpan.com/$1 [L,R=301]

---------------------------------------------------------------------

/****************** Start - redirecting index.php to root /*****************************

RewriteCond %{THE_REQUEST} ^.*/index.php
RewriteRule ^(.*)index.php$ http://www.arpan.com/$1 [R=301,L]


/****************** End - redirecting index.php to root /*****************************

Paypal Sandbox

<form target="paypal" action="https://www.sandbox.paypal.com/cgi-bin/webscr" method="post">
<input type="hidden" name="cmd" value="_s-xclick">
<input type="hidden" name="hosted_button_id" value="B7WZEHMFG3TTW">
<input type="image" src="https://www.sandbox.paypal.com/WEBSCR-640-20110401-1/en_US/i/btn/btn_cart_LG.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!">
<img alt="" border="0" src="https://www.sandbox.paypal.com/WEBSCR-640-20110401-1/en_US/i/scr/pixel.gif" width="1" height="1">
</form>

Steps to follow for auto return:-
My Account
Profile
Profile Summary
Selling Preferences
Website Payment Preferences
Turning on auto return

Thursday 14 April 2011

Get user Data from Twitter

    $xml = simplexml_load_file("http://twitter.com/users/show/USERNAME.xml");

                echo $xml->getName() . "<br />";
               
                foreach($xml->children() as $child)
                  {
                  echo $child->getName() . ": " . $child . "<br />";
                  }

Wednesday 13 April 2011

Get Twitter Followers

$twit = file_get_contents('http://twitter.com/users/show/USERNAME.xml');
            echo "<pre>";
            print_r($twit);
            $begin = '<followers_count>'; $end = '</followers_count>';
            $page = $twit;
            $parts = explode($begin,$page);
            $page = $parts[1];
            $parts = explode($end,$page);
            $tcount = $parts[0];
            if($tcount == '') { $tcount = '0'; }
           echo '<b> '.$tcount.' </b> Followers';