How to get the Title, Meta Information of a URL

Nov-17-2014 in PHP No comments

Do you want to figure out how to get the title, meta information( include: description, keywords, author,….) of a Url?

get-title-meta-information-url

There are many ways to do it but here I will guide you to do that is very simple by the use of function get_meta_tags(). This function get_meta_tags() will help you with get all meta information but not the title. To get the title of url you just use  following function.

Here below shows the PHP code to get all the meta information form the URL.

How to use this function?

By using the above code when you posts a url, this script should retrieve the title and the meta tags.

See Demo Meta Tags extractor

 

Add Your Comment