i am trying to get infos from another site.
<td>
<?php
$site=file_get_contents("$link");
$price='#<div class="price_a">(.*?)<\/div>#si';
preg_match_all($price,$site,$pricelist);
for ($a=0; $a<1; $a++){
echo $pricelist[1][$a];
}
?>
</td>
<td>
<?php
$site=file_get_contents("$link");
$price='#<div class="price_a">(.*?)<\/div>#si';
preg_match_all($price,$site,$pricelist);
for ($a=1; $a<2; $a++){
echo $pricelist[1][$a];
}
?>
</td>
But in the source code there are also tags like <div class="price_m">
or <div class="price_n">
How can i take all tags from this site and use it in tags?
Thanks...