Hi there,
Bit of a complicated query, for me anyway. lol
Following code:
$url = 'http://www.cheapsmells.com/viewProduct.php?id=6590';
$html = file_get_contents($url);
preg_match('/<div class=\'productOurPrice\'?>(.+?)(\d+\.\d+)(.+?)?<\/div>/', $html, $match);
$out = $match[2];
Great, no problem!
However, this next url I need to code to is a bit trickier as the tag data is, well see below...
url: http://www.directcosmetics.com/results/products.cfm?ctype=ME&range=Denim&code=14770
tags:
<div class="value">
£1.99 <font size="3"> </font></div>
All the whitespace is confusing me and I can't seem to apply the above to this now.
Any ideas would be very helpful.
PS. It's PHP encased