Correct. I would like to retrieve it via PHP somehow.
The site is very simple. News site with headlines. Clicking the headlines will take you the specific news page. All I would like to grab is the name of the headline, and the link that it will go to.
Well you can download the webpage source using cURL and then use a regular expression to find the HTML tag which encloses the heading. Then you can extract the info between the tags.
Well you can download the webpage source using cURL and then use a regular expression to find the HTML tag which encloses the heading. Then you can extract the info between the tags.
Could I also use fsockopen instead of cURL? Seems that's more popular with hosts ...
several techniques ... some ethical issues to deal with too.
Yes I have found similar info. It won't be an issue, as I've confirmed with the site of what this will be doing. It simply will be grabbing news titles and linking directly to their site for added traffic.
The only potential issue is the bandwidth hit in grabbing the links - although I would like to make it only happen a limited number of times a day.
If you were able to contact that other site's owner, maybe you could have them
put an RSS feed for the data you want. That would be a win-win situation for the
both of you. It would help their bandwidth, and it would give you the XML you need
to easily display the information (with links back to their site).