Sorry to ask, I have found a lot of mention of this subject around but I really can't get anything to work and am really struggling.
I am setting up a website which sells stock from another company. I want to use their stock levels from their website as my own. I started by using the file_get_contents command:
$suppliers_page = file_get_contents('http://www.their-website.com/product-234-page.aspx');
The output of this obviously gives me a web page, the content I am after is on line 520-1 encapsulated in theses html tags:
<p><span class = 'StockHint StockHint_InStock'>
In Stock: 68</span></p>
Please, how do I cut down this massive string to just this stock number??
Thanks


