tags:

views:

77

answers:

2

Hi! I want to grab anything thats inside the code below on a website.

<table class="eventResults byEvent vevent"></table>

How can I accomplish this? Thanks

+2  A: 

You can use the file_get_contents function or the curl extension for that.

Sarfraz
Yeah, I'm trying but can't get it to work.
Victor
@Victor, that's unfortunate..?
Dolph
@Victor: You should post your code what you are trying also.
Sarfraz
+2  A: 

If you want to grab HTML from a site, you will want to use a DOM Parser. PHP has several XML processing packages to help you with this, be it DOM, SimpleXML or XMLReader. An often suggested alternative at SO is SimpleHtmlDom.

Since one of the class in the table is vevent, the content inside the table could be an hCalender microformat (can't tell for sure without seeing the content). If so, you can also use a microformat parser, preferably Transformr to save you the work of manually parsing the event data.

Gordon