Jump to content

retreive infomation from HTML tables


shocker-z

Recommended Posts

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 Smiley

so basicaly if you can show me how to retreive the OS infomation cell then i can develop for further cells.

Regards
Liam
Link to comment
https://forums.phpfreaks.com/topic/27209-retreive-infomation-from-html-tables/
Share on other sites

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
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.
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

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.