brown2005 Posted December 22, 2010 Share Posted December 22, 2010 I was wondering can you read the keywords of a website in an iframe? i.e. say my website is www.mywebsite.com and on there was an iframe with google.co.uk can i read the keywords of the google site on my site? Thanks in advance. Link to comment https://forums.phpfreaks.com/topic/222391-using-an-iframe-and-reading-the-keywords-of-an-iframe-website/ Share on other sites More sharing options...
BLaZuRE Posted December 31, 2010 Share Posted December 31, 2010 I don't know what you mean by 'keywords', but you can try PHP DOM http://php.net/manual/en/book.dom.php Link to comment https://forums.phpfreaks.com/topic/222391-using-an-iframe-and-reading-the-keywords-of-an-iframe-website/#findComment-1153231 Share on other sites More sharing options...
QuickOldCar Posted January 20, 2011 Share Posted January 20, 2011 This is the easiest way. <?php $url = "http://www.phpfreaks.com"; $tag = get_meta_tags($url); echo $tag["keywords"]."<br />"; ?> Using curl and resolving the urls is a better way. Link to comment https://forums.phpfreaks.com/topic/222391-using-an-iframe-and-reading-the-keywords-of-an-iframe-website/#findComment-1162675 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.