PHP and htaccess tips and tricks

Last modified on by Karthikeyan K

17 useful htaccess tips and tricks – http://www.queness.com/post/5421/17-useful-htaccess-tricks-and-tips

How to get all social media members count by using php

  1. Feedburner
  2. Twitter
  3. Facebook
  4. Delicious

It grab the total number of twitter followers, feedburner subscribers and also delicious bookmarks of your account/website.

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
//Grab Twitter
$username = 'quenesswebblog';   /* Twitter username */
$api_page = 'http://twitter.com/users/show/' . $username;
$xml = file_get_contents ( $api_page );
$profile = new SimpleXMLElement ( $xml );
$count = $profile->followers_count;
$data['twitter'] = $count;
//Grab Feedburners
$username = 'queness'/* feedburner feed name */
$xml = file_get_contents ( $api_page );
$profile = new SimpleXmlElement($xml, LIBXML_NOCDATA);
$rsscount = (string) $profile->feed->entry['circulation'];
$data['rss'] = $rsscount;  
//Grab Delicious
$url = 'www.queness.com';   /* url */
$json = file_get_contents ( $api_page );
$json_output = json_decode($json, true); 
$data['delicious'] = $json_output[0]['total_posts'];
print_r($data);

BB Code to HTML Parser with PHPhttp://www.queness.com/code-snippet/6299/bb-code-to-html-parser-with-php

Get users’ IP Address with PHPhttp://www.queness.com/code-snippet/6295/get-users-ip-address-with-php

Php tips and tricks pdf – http://www.onlinefreeebooks.net/download/441/php-tips-and-tricks.pdf

You May Also Like

1 Response

  1. Kathy says:

    hey hey!! this is a very nice website here and I just wanted to comment & say that you’ve done a great job here! Very nice choice of colors & layout, very easy on the eyes.. Nicely done!…

Leave a Reply

Your email address will not be published. Required fields are marked *