Himore Posted October 15, 2007 Share Posted October 15, 2007 Hi. Hoping someone can help point me in the right direction here. How would you implement a live stock updater that can check whether a particular item is in stock at an online store (on a different website)? An example is here - h**p://www.wiigamereviews.co.uk/default.aspx Every 60 seconds the screen refreshes and checks various stores for availability of consoles, and as soon as some come into stock, it pops up an alert on the wiigamereview website. How would this be done? ??? thanks in advance, Nick Quote Link to comment https://forums.phpfreaks.com/topic/73375-would-this-be-done-using-php/ Share on other sites More sharing options...
simcoweb Posted October 15, 2007 Share Posted October 15, 2007 Basically the page has some javascript in it that tells it to refresh every 60 seconds and when it does the .asp code in the page runs a query to that entity and displays the results. You could do the same thing in PHP as well. You'd just have to have the source that supplies the information. Quote Link to comment https://forums.phpfreaks.com/topic/73375-would-this-be-done-using-php/#findComment-370207 Share on other sites More sharing options...
Himore Posted October 15, 2007 Author Share Posted October 15, 2007 Thank you very much for the prompt reply. However, it wasn't the refreshing of the screen every 60 seconds that had me foxed, as I know how to do that. It is the act of finding out whether the various online stores have a particular item in stock that has me fazed. Any idea on how you do that? Quote Link to comment https://forums.phpfreaks.com/topic/73375-would-this-be-done-using-php/#findComment-370214 Share on other sites More sharing options...
Barand Posted October 15, 2007 Share Posted October 15, 2007 Connect to the remote database server and query the stock table Quote Link to comment https://forums.phpfreaks.com/topic/73375-would-this-be-done-using-php/#findComment-370245 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.