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 Quote Link to comment 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 Quote Link to comment 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 Quote Link to comment Share on other sites More sharing options...
android6011 Posted July 17, 2007 Author Share Posted July 17, 2007 bump Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.