<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>Dancing Baby - </title> <meta name="description" content="Picture of Baby Dancing.." /> <meta name="keywords" content="image gallery,cute,baby " /> <meta name="Generator" content="Joomla! - Copyright (C) 2005 - 2006 Open Source Matters. All rights reserved. JoomSEF SEO by Artio (http://www.artio.net) - databases, information system and web applications" /> <meta name="robots" content="index, follow" /> <script type="text/javascript" src="..... I need to fetch the external URL and extract meta tags' contents into an array .. How do i do that ?? I know this can be done by file_get_contents, followed by a preg_match... But have no clue towards the regex used.. Please help.. Also, could anyone pleasee suggest a good tut. for learnig the basics of regular expressions and preg_match.. Thanks in advance..
for getting meta tag into array you can use get_meta_tags function for more detail see http://in2.php.net/get_meta_tags
Thanks a lot for enlightening me with the info. I didn't even know such a function existed for fetching META tags.. It works great.. Thanks again