Could these WordPress Themes be any more beautiful?
Find out now

Generating link preview using php

Generating link preview using PHP

To generate preview for a link we need to parse the link/url & get content of file located at the url and then using pattern matching we can get title, description and image associated with the link.