Jump to content

pulling data out of an remote html table


bob2588

Recommended Posts

http://www.sambob.info/phpfreaks/table.htm

 

the above link is an example of an html table i am trying to pull data out of i need help on starting a code the will pull that first and last name out of that table so in this case i need it to pull out John doe does any one have any idea on how to do this

 

 

thank you for your help

 

Bob

I'm not sure of your experience level with php, but my first suggestion would be:

 

fopen(); You can grab the file with this function.

 

And read the file with function: fgets()

 

You probably want to read the fgets() result into an array as well like: arrayName[] = fgets()...

 

This should get you started. You will certainly need to experiment some and determine a delimter for parcing the data - most likely preg_match() could help you with the main field names etc..

 

Good luck!

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.