Possible Duplicate:
Fastest way to retrieve a <title> in PHP
Suppose there is a website http://www.example.com with title = "Example" description = "it is an example" and keywords = "example, question, love php".
What will be the php code or any other code with which these can be fetched on submission of the link?
If you would like to fetch the data from an external link you want to get the page using curl.
Here's an example
For google.nl this returns:
The meta description and keywords might need more tweaking for your use.
Little sidenote cURL is not installed by default in apache so you might need to install if first.
Here's the cURL php function page: https://www.php.net/manual/en/ref.curl.php