Jump to content

Get repsonse from web page query


Stal

Recommended Posts

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

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.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.