jakebur01 Posted February 16, 2009 Share Posted February 16, 2009 Our current site is php. Our sister site is asp.net which uses special built vb apps to access inventory data. At the present, I do not have any way of accessing this data using php. However, I thought I might could build a few pages on the asp.net site and have the php site access those pages for information. Example: asp.net site - data.aspx TITLE[[[[[Test title]]]]] php side get content on http://www.sistersite.com/data.aspx - extract content in between the TITLE[[[[[ ]]]]] Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/ Share on other sites More sharing options...
allworknoplay Posted February 16, 2009 Share Posted February 16, 2009 Umm, have your sister site generate the data via XML. Then simply use PHP's SimpleXML function to read the data. Voila! You're done! Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/#findComment-763509 Share on other sites More sharing options...
jakebur01 Posted February 16, 2009 Author Share Posted February 16, 2009 I am not that fluent in asp.net. I have a product list in MySQL for php site. I am wanting to update my prices in mysql based on the price the sister site is displaying. Which the price would be the only text displayed on the page if needed for extracting. update_prices.php I would have a loop that would go through each item and get the price from data.aspx?ItemNo=$itemnumberhere ...... then, update that retrieved price into mysql. Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/#findComment-763670 Share on other sites More sharing options...
allworknoplay Posted February 16, 2009 Share Posted February 16, 2009 Well if you're not going to go the XML route then the best you can do is read the sister site and parse through the HTML code for everything that you are looking for, without any standard structure, that's going to be a pain... Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/#findComment-763678 Share on other sites More sharing options...
PromaneX Posted February 16, 2009 Share Posted February 16, 2009 Find somone who can help you get your asp site to output to xml and go down that route. Anything else is going to cause headaches down the line. Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/#findComment-763683 Share on other sites More sharing options...
allworknoplay Posted February 16, 2009 Share Posted February 16, 2009 Find somone who can help you get your asp site to output to xml and go down that route. Anything else is going to cause headaches down the line. Thank you!! Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/#findComment-763690 Share on other sites More sharing options...
jakebur01 Posted February 16, 2009 Author Share Posted February 16, 2009 Wouldn't the xml have to be a static page? Also, for now, the only html on the sister site page would be the price. It does not require anything complex for updating prices such as going through a lot of code. I am only dealing with one value, which would be displayed on the page. I will implement the xml later though. Quote Link to comment https://forums.phpfreaks.com/topic/145439-getting-content-off-sister-site/#findComment-763703 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.