Adapting a PHP Script
Posted: Tue Apr 03, 2007 7:01 am
feyd | Please use
to get the price off each of these
http://www.bizrate.co.uk/mobilephone...__nwylf--.html
http://phones.search.ebay.co.uk/n93_...34QQsacatZ3312
http://www.pricerunner.co.uk/cl/1/Mo...3B%3B%3B&q=n93
http://www.nextag.co.uk/Mobile-Phone...ukzB7z5---html
http://shopping.kelkoo.co.uk/ctl/do/...&fromform=true
http://froogle.google.com/froogle?q=...Search+Froogle
i changed the url but this did'nt work, how do i do this
Thanks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]
how can i adapt this scriptCode: Select all
<?php
$file=file_get_contents("http://amazon.co.uk/o/ASIN/B000BVNREY/ref=s9_asin_image_2/202-3365519-7202264?". "pf_rd_m=A3P5ROKL5A1OLE&pf_rd_s=center-3&pf_rd_r=1Q2GWW98EW6H2KYN4M1P&". "pf_rd_t=101&pf_rd_p=135090391&pf_rd_i=468294");
preg_match('/<b class="price">(.+)<\/b>/U',$file,$price);
$price=preg_replace('/<b class="price">(.+)<\/b>/U','$1',$price);
echo $price[0];
?>http://www.bizrate.co.uk/mobilephone...__nwylf--.html
http://phones.search.ebay.co.uk/n93_...34QQsacatZ3312
http://www.pricerunner.co.uk/cl/1/Mo...3B%3B%3B&q=n93
http://www.nextag.co.uk/Mobile-Phone...ukzB7z5---html
http://shopping.kelkoo.co.uk/ctl/do/...&fromform=true
http://froogle.google.com/froogle?q=...Search+Froogle
i changed the url but this did'nt work, how do i do this
Thanks
feyd | Please use
Code: Select all
,Code: Select all
and [syntax="..."] tags where appropriate when posting code. Your post has been edited to reflect how we'd like it posted. Please read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url] to learn how to do it too.[/color]