android6011 Posted July 14, 2007 Share Posted July 14, 2007 ok, so here is what i am attempting to do. if i view the source of a certain page, there is dynamic information that is put on the page i want and can view. lets just say it is a current news article. now i dont want the whole source, i just want the source of the table and the article. i know that right before the article there is a specific line of code that is something like "headline news<span class="title">" before it starts putting the information i want, that is always there and doesnt change. so how can i get all the information after that up to another static piece that would signal the code to stop getting information? i know this sounds soooooo confusing so if anyone doesnt know what i am trying to do please ask, because I could really use help getting this going Link to comment https://forums.phpfreaks.com/topic/59917-grabbing-select-information-from-a-page/ Share on other sites More sharing options...
GingerRobot Posted July 14, 2007 Share Posted July 14, 2007 Its not that confusing Take a look at the file_get_contents() and the preg_match() functions Link to comment https://forums.phpfreaks.com/topic/59917-grabbing-select-information-from-a-page/#findComment-297967 Share on other sites More sharing options...
android6011 Posted July 16, 2007 Author Share Posted July 16, 2007 thanks, i am firmiliar with file_get_contents() but I cant seem to figure out how to use preg_match() to get the information between the two tags Link to comment https://forums.phpfreaks.com/topic/59917-grabbing-select-information-from-a-page/#findComment-299684 Share on other sites More sharing options...
android6011 Posted July 17, 2007 Author Share Posted July 17, 2007 bump Link to comment https://forums.phpfreaks.com/topic/59917-grabbing-select-information-from-a-page/#findComment-300671 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.