I'm using PHP curl to load an external page which works great, but I was wanting to load only one div section within it that contains these attributes on the external site.
It looks like what you're trying to grab are all links to other pages.
Is it those links you're looking to get? Or did you mean to get the results of the links?
Yes they're links for our basketball team fixtures and results in a div. We want to display them on our website, but without the headers and footers. It's a temporary fix until RSS feeds are implemented.
I've managed to extract the div with is content, but not using curl.
Here's the code for others to refer to.
Only thing to remember is the css and images need aren't carried across this way. That why I was trying to get PHP curl working instead..... And divs with numbers in them can cause issues.
They're links for our basketball team fixtures in a div ideally displayed with formatting. We want to display them on our website, but without the headers and footers. It's a temporary fix until RSS feeds are implemented. This results of the hyperlinks don't need to be displayed until the user clicks on them.
I've managed to extract the div with it's content, but not using curl.
Here's the code for others to refer to.
Only thing to remember is the css and images need aren't carried across this way. That's why I was trying to get PHP curl working..... And divs with numbers in them can cause issues.
If you think there may be RSS (XML files) in the near future, you
should wait for that. That will be the best method to get info.
Maybe you can push them into getting it done, or offer some help?