-Felix- Posted October 22, 2006 Share Posted October 22, 2006 Often you see websites that quote information from another site, for example prices:Website A presents a product and then quotes the price from website B, the seller, and gets that information displayed on their site (Website A).The advantage of this over manually getting this information is that it is automatically updated when the seller changes their price and thus you don't have to visit this site B every day/week to check if the price has changed. Instead, everytime your page is loaded it will fetch the price information from that other site.Now, how do I do this??? Quote Link to comment Share on other sites More sharing options...
Orio Posted October 22, 2006 Share Posted October 22, 2006 You can use the file functions or cURL combined with regular expressions :)Orio. Quote Link to comment Share on other sites More sharing options...
-Felix- Posted October 22, 2006 Author Share Posted October 22, 2006 Could you post a simple example code?I'm somewhat a beginner in PHP coding. Quote Link to comment Share on other sites More sharing options...
printf Posted October 22, 2006 Share Posted October 22, 2006 If you have permission, then ask for database access or API access, if you scraping then you shouldn't do that without asking permission from the site administrator first. Tell me what your doing and I will give you a quick example based on exactly [b]how[/b] your going to do it!me! Quote Link to comment Share on other sites More sharing options...
-Felix- Posted October 22, 2006 Author Share Posted October 22, 2006 Let's say there's site A with lots of text and information. There is information that is changing weekly, even daily. Take for example currency rates. They change hourly.Now on my site, I simply want to quote/fetch the live currency rate from that other site.How to do this with PHP? Quote Link to comment Share on other sites More sharing options...
-Felix- Posted October 23, 2006 Author Share Posted October 23, 2006 No one can do this?Seriously, I thought it was just a couple of rows of code, not a big deal!? 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.