ohdang888 Posted March 2, 2010 Share Posted March 2, 2010 i am using get_meta_tags($url) to currently get a pages description, etc. But how would i get the information in a "<link>" tag? for example...a site had something like this: <link rel="image_src" href="video_screenshot_image_src url" /> i am already getting the page with cUrl as well, but im not sure how to get attributes from it (if thats even the way to go) thanks Link to comment https://forums.phpfreaks.com/topic/193859-get-tag/ Share on other sites More sharing options...
teamatomic Posted March 2, 2010 Share Posted March 2, 2010 preg_match_all ("|<([lL]ink .+?)>|i", $result, $matches); HTH Teamatomic Link to comment https://forums.phpfreaks.com/topic/193859-get-tag/#findComment-1020266 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.