Get Webpage Title and Meta Description from URL in PHP

Hi! Today we'll see how to get webpage title and description from url in php. At times you may want to scrape some url and retrieve the webpage contents. You may need some third-party DOM Parser for this sort of task but PHP is uber-smart and provides you with some fast native solutions. Retrieving page title and meta description tags from url is lot easier than you think. Here we'll see how to do it.

A Web Page title can be found between the <title> and </title> tag and description within <meta> tag. Page title is self-explanatory and meta tags store various useful information about a webpage like title, description, keywords, author etc.

php-get-web-page-title-description-from-url
Read more »

0 Response to "Get Webpage Title and Meta Description from URL in PHP"

Posting Komentar