How can i do this type of programing in my website? Please visit this website http://www.wdavis.com.au/live-price-list.html price are come automatic i want to display the same price in my website. can anyone guide me?
There are web services where you can pull data from those sources. I don't know exactly what this site is using, but generally you can use php or javascript to pull data from another source and use it in your pages. This can give you dynamic information that is updated and live on your site.
Correct me if I'm wrong, but they are displaying their own company buy/sell prices for specific stuff (bars/coins/whatever). They are not just pulling this info from another site or market. Right? If they are pulling the prices automatic from some other source, then do you know what source?
i am finding when this type of price automatic updates is there any site they are giving some rss for this? this site is using his own price from admin i think so.
You can use following code: function grabPrice() { $tag = array(); $data = file_get_contents("http://www.wdavis.com.au/live-price-list.html"); $pS = strpos($data, '<tr class="Product-Row-'); $rno = 0; while ($pS !== false) { $p1 = strpos($data, "<td>", $pS); $p2 = strpos($data, "</tr>", $pS); if ($p1 === false || $p2 === false) continue; $row = substr($data, $p1, $p2 - $p1); $p1 = strpos($row, "<td>", 0); $no = 0; $item = array(); while ($p1 !== false) { $p2 = strpos($row, "</td>", $p1); if ($p2 === false) break; if ($no == 0) { $item['product'] = substr($row, $p1 + 4, $p2 - $p1 - 4); $no++; $p1 = strpos($row, "<td>", $p2); continue; } if ($no == 1) { $item['buy'] = substr($row, $p1 + 4, $p2 - $p1 - 4); $no++; $p1 = strpos($row, "<td>", $p2); continue; } if ($no == 2) { $item['sell'] = substr($row, $p1 + 4, $p2 - $p1 - 4); $no++; $p1 = strpos($row, "<td>", $p2); continue; } $p1 = strpos($row, "<td>", $p2); } if ($no >= 3) { $results[$rno] = $item; $rno++; } $pS = strpos($data, '<tr class="Product-Row-', $pS + 1); } } Code (markup):
this code is not working i just want to trace 2 - 3 values from this site how is this possible or any one can give other website who give us feed please help me