-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??? Link to comment https://forums.phpfreaks.com/topic/24736-quoting-information-from-another-site/ 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. Link to comment https://forums.phpfreaks.com/topic/24736-quoting-information-from-another-site/#findComment-112677 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. Link to comment https://forums.phpfreaks.com/topic/24736-quoting-information-from-another-site/#findComment-112729 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! Link to comment https://forums.phpfreaks.com/topic/24736-quoting-information-from-another-site/#findComment-112758 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? Link to comment https://forums.phpfreaks.com/topic/24736-quoting-information-from-another-site/#findComment-112782 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!? Link to comment https://forums.phpfreaks.com/topic/24736-quoting-information-from-another-site/#findComment-113064 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.