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
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
Link to comment
Share on other sites

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
Share on other sites

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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

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