godsent Posted May 1, 2009 Share Posted May 1, 2009 I know its possible to read other websites source, but i can't figure out how could i get some information from them. For example get the title, witch is between <title>greatTitle</title>. Is this possible? If yes any hits for me please. Link to comment https://forums.phpfreaks.com/topic/156391-read-website-source-and-find/ Share on other sites More sharing options...
Mchl Posted May 1, 2009 Share Posted May 1, 2009 preg_match Example preg_match("#<title>(.*?)</title>#",$pageSource,$matches); echo $matches[1]; Link to comment https://forums.phpfreaks.com/topic/156391-read-website-source-and-find/#findComment-823362 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.