shocker-z Posted November 14, 2006 Share Posted November 14, 2006 Hi all,How you all doin? What im asking for is either a sample or good tutorial which can help me parse infomation from this following page http://www.ukchat.ws/parsethis.php i just need to know how i would go about getting the infomation into variable so's that i can insert into database for dynamic reading of the output of the program for an asset tagging system that i have created at work.All ideas welcome Smileyso basicaly if you can show me how to retreive the OS infomation cell then i can develop for further cells.RegardsLiam Link to comment https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/ Share on other sites More sharing options...
effigy Posted November 14, 2006 Share Posted November 14, 2006 Which information? And how do you want it structured? Link to comment https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/#findComment-124447 Share on other sites More sharing options...
shocker-z Posted November 14, 2006 Author Share Posted November 14, 2006 this html page here[url=http://www.ukchat.ws/parsethis.php]http://www.ukchat.ws/parsethis.php[/url]i just kind of need to know the basic idea of how to do it then Hopefully i will be able to develop to pull out all diffrent infomation from the report produced.So basicaly just need to be anle to store the info in a variable.Thanks alot for this help :)I've never fully got into regex and hoping this will inspire me to get into it :)Liam Link to comment https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/#findComment-124451 Share on other sites More sharing options...
effigy Posted November 14, 2006 Share Posted November 14, 2006 All of the tabled information? Even though, [url=http://www.perlmonks.net/?node_id=580168]this[/url] is a post about Perl, it makes a good point: parsing (lots of) HTML with regex can be a pain. I recommend checking PEAR to see if it has something similar to Perl's HTML::TreeBuilder. See what tools may be available to assist before doing this all by hand. Link to comment https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/#findComment-124565 Share on other sites More sharing options...
shocker-z Posted November 14, 2006 Author Share Posted November 14, 2006 I just need like 10 things from the page.. but having just got a change to properly look at the code i can see this being alot harder than i origonaly thought. as the tables go across 2 titles before having the info i want..Any hints on where to look for the right PEAR support for what i need?Liam Link to comment https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/#findComment-124726 Share on other sites More sharing options...
effigy Posted November 15, 2006 Share Posted November 15, 2006 Search @ pear.php.net. I searched for "html parse" and [url=http://pear.php.net/package/XML_HTMLSax3]XML_HTMLSax3[/url] came up. Link to comment https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/#findComment-124996 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.