Kunst & Antiquitäten
·Alte Weine & Spirituosen
·Antike
·Antikschmuck & -uhren
·Antikspielzeug
·Antiquarische Bücher
·Architektur & Garten
·Design & Stil
·Fotografie & Fotokunst
·Glas & Kristall
·Grafik: Drucke
·Grafik: Handzeichnung
·Holz- & Beinarbeiten
·International
·Jagd & Fischen
·Keramik & Fayencen
·Künstlerbedarf
·Künstler-Selbstvermarktung
·Malerei
·Metallobjekte
·Mobiliar & Interieur
·Musikinstrumente
·Nautika & Maritimes
·Photographica & Film
·Plastik & Skulptur
·Porzellan
·Plakate & Kunstdrucke
·Premiumobjekte
·Religiöse Volkskunst
·Silber
·Technik, Werkzeug & Geräte
·Textilien & Kleidung
·Varia
# edit the template to meet fit your layout
$result_template = '$pic | $title $price | | \n';
#$result_template = '$pic | $title$price - Gebote: $gebote - endet in $end | | \n';
$res_num = 60; # set value between 1 and 50 - number of results from ebay
if(!$ebay_num) { $ebay_num = $_SERVER["QUERY_STRING"]; }
$fp = fsockopen ("listings.ebay.de", 80, $errno, $errstr, 5);
if (!$fp) {
echo "$errstr ($errno) \n";
} else {
$getpath = "/aw/plistings/list/category$ebay_num/index.html?from=R0";
fputs ($fp, "GET $getpath HTTP/1.0\r\nHost: listings.ebay.de\r\n\r\n");
while (!feof($fp)) {
$ebay_page .= fgets ($fp,128);
}
fclose ($fp);
}
if(eregi('301 Moved Permanently', $ebay_page)) { # find the redirection url
list($garb, $mean) = split('Location: http://', $ebay_page);
list($url, $garb) = split('Content-Language', $mean);
$url = trim($url);
list($domain, $path) = split('/', $url);
$fp = fsockopen ($domain, 80, $errno, $errstr, 5);
if (!$fp) {
echo "$errstr ($errno) \n";
} else {
fputs ($fp, "GET /$path HTTP/1.0\r\nHost: listings.ebay.de\r\n\r\n");
while (!feof($fp)) {
$ebay_page .= fgets ($fp,128);
}
fclose ($fp);
}
}
#print $ebay_page;
$rows = split("( | ", $mean);
list($link, $pic) = split("\"> ", $pic);
$pic = '
# $content \n";
print $content;
?>
|