server_room
asked on
Converting html table data into usable arrays
I'm trying to convert a lot of static html pages into usable arrays using PHP.
All of the pages follow this same pattern:
************************** ********** ********** ********** *
source code can be found at this URL: http://12-250-153-83.client.attbi.com:10/table.html
************************** ********** ********** ********** ********** *********
I might have been able to work this if the cities were not bunched into a group.
But I need an array with the keys name, address, city, phone, etc.
Maybe the map links will help? But I need the phone and the name as well
All of the pages follow this same pattern:
**************************
source code can be found at this URL: http://12-250-153-83.client.attbi.com:10/table.html
**************************
I might have been able to work this if the cities were not bunched into a group.
But I need an array with the keys name, address, city, phone, etc.
Maybe the map links will help? But I need the phone and the name as well
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
crazy you Hatemben ;-)
ASKER
This is a wonderful script, but is there a way to make it so that I don't have to put the state for each different html page?
because I have like 3,000 of these :(, if not I know of a way to match the states up with a coresponding database.
Great job btw!
because I have like 3,000 of these :(, if not I know of a way to match the states up with a coresponding database.
Great job btw!
You can browse your 3000 files and get the state name with a preg_match ..., then inject it in this script and do the rest of the job ...
Just try it with 2 or 3 files manually, then you can do it with all the rest :)
Just try it with 2 or 3 files manually, then you can do it with all the rest :)