<?php
$site ="http://www.sanalpazar.com/snopy-rampage-sn-r9-oyuncu-mikrofonlu-kulaklik/i-77192800?malid=SP_MYD_77192800";
$parcala1='@<h1 class="sp-font-16-b-black">(.*?)</h1>@si';
$parcala2='@<span class="sp-font-16-b-darkgreen p-left-5" id="au_price">
(.*?),<sup>(.*?)</sup> TL </span>@si';
$parcala3='@<img class="item-img-size float-ini" name="main_ad_image" src="(.*?)" border="0" title="(.*?)" alt="(.*?)">@si';
$parcala4='@<input type="image" name="shoping_cart_add" src="(.*?)" alt="Sepete Ekle" title="(.*?)">
@si';
$botara =file_get_contents($site);
$botara2 =file_get_contents($site);
$botara3 =file_get_contents($site);
$botara4 =file_get_contents($site);
preg_match_all($parcala1,$botara,$baslik);
preg_match_all($parcala2,$botara,$fiyat);
preg_match_all($parcala3,$botara,$resim);
preg_match_all($parcala4,$botara,$sepet);
//print_r($baslik);
//print_r($fiyat);
//print_r($resim);
//print_r($sepet);
echo $baslik[0][0];
echo $fiyat[0][0];
echo $resim[0][0];
echo $sepet[0][0];
?>
Adı Soyadı:
Mu.... Al....
Yaşı:
40
Konum:
Hatay
Ofis Versiyonu:
Ofis 2013 64 Bit
Son Oturumu:
08/06/2019,10:08
Cevapla