Saturday, March 2, 2013

Get all links from url php

Get all links from url php

Get all links from url php <?php /* Online PHP Examples with Source Code website: http://4evertutorials.blogspot.in/ */ $url = "http://4evertutorials.blogspot.com/"; $var = fread_url($url); preg_match_all ("/a[\s]+[^>]*?href[\s]?=[\s\"\']+". "(.*?)[\"\']+.*?>"."([^<]+|.*?)?<\/a>/", $var, &$matches); $matches = $matches[1]; $list = array(); foreach($matches as $var) { print($var.""); } // The fread_url function allows you to get a...
Get facebook page likes php

Get facebook page likes php

It is simple php code that get the number of users who like a particular Facebook page<?php /* Online PHP Examples with Source Code website: http://4evertutorials.blogspot.in/ */ $fb_URL = "http://www.facebook.com/forevertutorials"; # FB Page url $myurl = "https://graph.facebook.com/".$fb_URL."?fields=likes"; $result = file_get_contents($myurl); $response = json_decode($result, true); if(count($response)) { echo "FB Page...
Get all followers of specify user from Twitter by PHP

Get all followers of specify user from Twitter by PHP

There are many ways for getting Twitter follower count but the simplest of them is by using a simple PHP method explained on this article. <?php /* Online PHP Examples with Source Code website: http://4evertutorials.blogspot.in/ */ $screenName = "4evertutorial"; #user name on twitter $ch = curl_init(); curl_setopt($ch, CURLOPT_URL, "http://api.twitter.com/1/statuses/user_timeline.json?include_entities=false&include_rts=false&screen_name=$screenName&count=1");...

 

© 2014 4everTutorials. All rights resevered.

Back To Top