• No categories
Browsing articles from "June, 2015"
Jun
22
2015
Uncategorized

Title, meta description & keywords of a webpage using curl

CURL should be enabled for php. You can check it in php.ini. Here is the php code to fetch title, meta keywords & meta description of a webpage by providing its url. $url = “http://amandip.net/php-mysql/get-emails-from-inbox-of-email-server”; try{ $ch = curl_init(); curl_setopt($ch, CURLOPT_HEADER, 0); curl_setopt($ch, CURLOPT_RETURNTRANSFER, 1); curl_setopt($ch, CURLOPT_URL, $url); curl_setopt($ch, CURLOPT_FOLLOWLOCATION, 1); $html = curl_exec($ch); $err […]

Continue Reading »
Author An article by amandip Comments Comments Off on Title, meta description & keywords of a webpage using curl