digitalalpha Posted February 5, 2008 Share Posted February 5, 2008 Can someone help me to explain how can I used PHP to extract news links for sites and stored them in database. This is for sites which does not offer RSS feed etc. e.g. http://www.cosco.com.sg/ir_multimedia.html http://www.capitamall.com/newsroom.html etc. basically, wants some code example which can explain how to read a website news link, and then collect LATEST news (URL, Subject line) and stored it to a database. Many Thanks in advance. Quote Link to comment Share on other sites More sharing options...
laffin Posted February 5, 2008 Share Posted February 5, 2008 this is where View Page Source comes in, or save as html. than ya load it into yer favorite text editor (notepad,notepad++,textpad,ultraedit). and look how they construct the news. you will see a pattern, and ya can manually extract the data but the more common way is to use regex Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.