Tag Archives: file_get_contents

Check Google PageRank With PHP Posted by in PHP | Leave a comment

I used to use Google Toolbar in order to check Google PageRank of web page I like but this way doesn’t work any more since I’ve upgraded Firefox to a higher version. And I can’t find any official API from Google that mention about getting Google PageRank. Continue reading

PHP Get Likes Number Of Facebook Page Posted by in Facebook Graph API | 5 Comments

There are several ways to get the number of users who like a particular Facebook page, we can use both Facebook API or FQL to get that number. However, I’ll supply a simplest way to do that, just a few lines of code, we don’t need to register for a new Facebook app or request allow permission or anything. Continue reading

PHP Download Image Or File From URL Posted by in PHP | 19 Comments

I’ll show you 3 functions that download a particular file (ex: image,video,zip,pdf,doc,xls,etc) from a remote resource (via a valid URL) then save to your server. Continue reading

PHPMailer Send Email HTML Content With UTF-8 Encoding Posted by in PHP | 3 Comments

With PHPMailer email transfer class, there are 2 things I like best: easy send email with HTML Content and charset setting (UTF-8 encoding). Continue reading

Get WOEID Of A City Name From IP Address With PHP Posted by in PHP | 9 Comments

This tutorial will use Yahoo! GeoPlanet API (or Web Service) to look up the WEOID of City name which is resolved from the IP Address. Continue reading

PHP Parse Title Description Keywords From A Website Posted by in PHP | 8 Comments

I’m working on a Website Directory project which need to get and display Title, Description and Keywords of any website and some information regarding Geographical Location such as: Hostname, Country, Region, City, Postal Code, Latitude, Longitude, ISP, Organization via the website IP Address. Continue reading

PHP Get Webpage Content Using cURL Posted by in PHP | 3 Comments

It’s very common task for web developers who want to download remote content of a particular URL, XML, RSS or even call to a API or web service. PHP’s cURL library which often comes with default configuration on popular shared hostings allows us to do that. Continue reading