synted Posted September 25, 2006 Share Posted September 25, 2006 I have grabbed a Webpage (HTML) from a remote site that contains name surname and stuff like that.... How can i put each one (result) into a var?The page is like that:[code]<html><head><title>Title Here.</title><meta http-equiv="Content-Type" content="text/html; charset=utf-8"></head><body>Name:*********<br>Surname:***************<br>Number:***********<br>Date:*************<br>Date2:*************<br>Phone:*************<br>Phone:*************<br><br></body></html>[/code](Also what to do with the two phones? The name is the same but they might be different data) Link to comment https://forums.phpfreaks.com/topic/21965-want-to-split-an-html-section-into-vars/ Share on other sites More sharing options...
SharkBait Posted September 25, 2006 Share Posted September 25, 2006 I haven't made any type of crawling script, but you would have to look for particular words (using regexp?) and parse out the data you wanted. Link to comment https://forums.phpfreaks.com/topic/21965-want-to-split-an-html-section-into-vars/#findComment-98133 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.