Stal Posted November 20, 2006 Share Posted November 20, 2006 Hi,Im desperately trying to solve this problem. I am trying to set up a site that will display live product stock values. I have access to a web page from the supplier which simpy returns the stock figure and nothing else. This will be on a different domain.If i could capture the body of the page, which would be the stock figure i need, as a variable then i can put that in my page wherever I want.Is there a way to capture the response from a query on another domain as a variable? ???any help appreciated. Link to comment https://forums.phpfreaks.com/topic/27900-get-repsonse-from-web-page-query/ Share on other sites More sharing options...
Caesar Posted November 20, 2006 Share Posted November 20, 2006 This wouldn't be the most efficient way to go about doing it. If there is lag on their site, it will take just as long (Or longer) to load [i]your[/i] pages, since you'd basically just be parsing the HTML on their page, and then digging through it for a specific line. It isn't a bad technique when getting other stuff...but anything pertaining to ecommerce, you want to use better techniques. Not to mention I would personally block anyone doing such a thing on my site. Link to comment https://forums.phpfreaks.com/topic/27900-get-repsonse-from-web-page-query/#findComment-127580 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.