amazon สินค้าหน้าเดียว<<<>>>ครับพี่น้อง

เริ่มโดย คนเดินทางไกล, 21 มกราคม 2011, 18:11:54

หัวข้อก่อนหน้า - หัวข้อถัดไป

0 สมาชิก และ 1 ผู้มาเยือน กำลังดูหัวข้อนี้

คนเดินทางไกล

จากกระทู้นี้ครับ
http://www.thaiseoboard.com/index.php/topic,163867.0.html

ผมไม่ได้เขียนเองนะครับแค่เอามาปรับแต่งเพิ่มเติมนิดหน่อย

<?php
$tag
="xxxxxxxxxxxx-20";
$asin "B001ADA5HY";
$AWSAccessKeyId "xxxxxxxxxx";
$SecretAccessKey "xxxxxxxxx";
$title="xxxxxxxxxxxxxx";
$keyword="xxxxxxxxxxxxxx";
$descrpit='xxxxxxxxxxxx';
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>#1: BUY  :<?php echo ''.$title.'';?> SAVE PRICES!</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<base href="http://drivemedicalheavydutysuctionmachine.shopallzone.com/"></base>
<meta http-equiv="keywords" content="<?php echo ''.$keyword.'';?>"/>
<meta http-equiv="description" content="<?php echo ''.$descrpit.'';?>"/>
<meta http-equiv="imagetoolbar" content="no" />
<meta name="robots" content="index, follow">
<meta name="revisit-after" content="1 days">
<meta name="rating" content="general">
<meta http-equiv="expires" content="0">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
</head>
<body>
<div align="center">
<?php
$protocol 
strpos(strtolower($_SERVER['SERVER_PROTOCOL']),'https'
                === 
FALSE 'http' 'https';
$host     $_SERVER['HTTP_HOST'];
$script   $_SERVER['SCRIPT_NAME'];
$params   $_SERVER['QUERY_STRING'];
 
$currentUrl $protocol '://' $host $script '?' $params;
$currentUrl=str_replace("index.php?","",$currentUrl);

echo
'<font size="1">'.$keyword.'</font></br>';

$Timestamp gmdate("Y-m-d\TH:i:s\Z"); 
$Timestamp str_replace(":""%3A"$Timestamp);
$ResponseGroup "ItemAttributes,Offers,Images,Reviews,EditorialReview,OfferFull,OfferSummary";
$ResponseGroup str_replace(",""%2C"$ResponseGroup);

$String "AWSAccessKeyId=$AWSAccessKeyId&
ItemId=
$asin&
Operation=ItemLookup&
ResponseGroup=
$ResponseGroup&
Service=AWSECommerceService&
Timestamp=
$Timestamp&
Version=2009-01-06"
;

$String str_replace("\n"""$String); 

$Prepend "GET\nwebservices.amazon.com\n/onca/xml\n";
$PrependString $Prepend $String;

$Signature base64_encode(hash_hmac("sha256"$PrependString$SecretAccessKeyTrue));  
$Signature str_replace("+""%2B"$Signature);
$Signature str_replace("=""%3D"$Signature);

$BaseUrl "http://webservices.amazon.com/onca/xml?";
$SignedRequest $BaseUrl $String "&Signature=" $Signature;
$XML simplexml_load_file($SignedRequest);
$session curl_init($SignedRequest);
curl_setopt($sessionCURLOPT_HEADERfalse);
curl_setopt($sessionCURLOPT_RETURNTRANSFERtrue);
$response curl_exec($session);
curl_close($session); 
$parsed_xml simplexml_load_string($response);
$ListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->FormattedPrice;
$AmountListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->Amount;
$MediumImage=$parsed_xml->Items->Item->LargeImage->URL;
$offersurl=$parsed_xml->Items->Item->ItemLinks->ItemLink[6]->URL;
$url$parsed_xml->Items->Item->DetailPageURL ;
$urlreviews=$parsed_xml->Items->Item->ItemLinks->ItemLink[2]->URL;
$Offer_name=$itemoffer->Merchant->Name;
$EditorialReviews=$parsed_xml->Items->Item->EditorialReviews->EditorialReview->Content;
$content .='<br><br><font color="blue" size="5">'.$parsed_xml->Items->Item->ItemAttributes->Title.'</font><br>';
$content .= ($EditorialReviews);
$pricelist$parsed_xml->Items->Item->ItemAttributes->ListPrice->FormattedPrice;
$price=$parsed_xml->Items->Item->Offers->Offer->OfferListing->Price->FormattedPrice;
$Manufacturer$parsed_xml->Items->Item->ItemAttributes->Manufacturer;
$LowestNewPrice=$parsed_xml->Items->Item->OfferSummary->LowestNewPrice->FormattedPrice;
$LowestUsedPrice=$parsed_xml->Items->Item->OfferSummary->LowestUsedPrice->FormattedPrice;
$TotalNew=$parsed_xml->Items->Item->OfferSummary->TotalNew;
$TotalUsed=$parsed_xml->Items->Item->OfferSummary->TotalUsed;
$LowestNewPrice=$parsed_xml->Items->Item->OfferSummary->LowestNewPrice->FormattedPrice;
$ListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->FormattedPrice;
$AmountListPrice=$parsed_xml->Items->Item->ItemAttributes->ListPrice->Amount;
$pricesave=$AmountListPrice-$AmountLowestNewPrice;
$AmountLowestNewPrice=$parsed_xml->Items->Item->OfferSummary->LowestNewPrice->Amount;
$Feature=$parsed_xml->Items->Item->EditorialReviews->EditorialReview[0]->Content;
$content .= "<table border='0' bordercolor='#fff'></br><tr><td><a href='http://www.amazon.com/dp/$asin/?tag=$tag' target='_blank'><img src=".$MediumImage." border='0'></img></a></td>";
$content .= "<td >".$parsed_xml->Items->Item->ItemAttributes->Title."<br>";
$content .= "<font size='2'>By: ".$Manufacturer."</font><br><hr>";
$content .= "Pricelist:".$pricelist."<br>";
$content .= "LowestNewPrice:".$LowestNewPrice."<br>";
$content .= "<font color='green'face='verdana' size='4'>Sale Price:".$price."</font><br>";
$pricelist=str_replace("$","",$pricelist);
$price=str_replace("$","",$price);
$save=number_format($pricelist-$price,2);
$content .= "PriceSave:$".$save."</br>";
$content .= "<br><a href='http://www.amazon.com/gp/aws/cart/add.html?AssociateTag=$tag&ASIN.1=$asin&Quantity.1=1' rel='nofollow' target='_blank'><img src='http://spmedicaladjustablecpapchinstrap.shopallzone.com/buy1.gif' border='0'></img></a></td></tr></table>";
$content .= "<h2>".$parsed_xml->Items->Item->ItemAttributes->Title." Product Feature</h2>";
foreach (
$parsed_xml->Items->Item->ItemAttributes->Feature as $itemFeature){
                  
$content .="<li>$itemFeature </li> \n";   
                   }
$amazonitem="<br>".$parsed_xml->Items->Item->EditorialReviews->EditorialReview[1]->Content;
$content .=$amazonitem;
$content .="<br><a href='http://www.amazon.com/dp/$asin/?tag=$tag' rel='nofollow' target='_blank'><img src='http://spmedicaladjustablecpapchinstrap.shopallzone.com/fsbuy.png' border='0'></img></a>";
$content .="<h3>Customer Reviews</h3>";
$content .="<a href='http://www.amazon.com/product-reviews/$asin/?tag=$tag' rel='nofollow' target='_blank'><img src='http://spmedicaladjustablecpapchinstrap.shopallzone.com/cw1go.gif' border='0'></img></a>";
print 
$content;
echo 
'<p align="center">by <a href="'.$currentUrl.'" title="'.$title.'">'.$title.'</a></p>';
?>

</div>
<!-- banner -->
<div align="center">ใส่แบนเนอร์</div>
</body>
</html>


เซฟเป็น  php นะครับ
ตัวอย่าง
http://drivemedicalheavydutysuctionmachine.shopallzone.com/

maxmail


mksuky

[direct=http://plazapostfree.com]ลงประกาศฟรี[/direct] [direct=http://plazapostfree.com/list.php].[/direct]


panubon

"Don't put all your eggs in one basket"

monowall

ง็อก ง็อง แง็ง แง็ง ...

BeerSkz

โอ้ว มีคนเอาของผมมาต่อยอดด้วย

(มีคนบอกว่าขายได้แล้วนะ)

peempu


X-ZYTE

อ้างถึงจาก: BeerSkz ใน 21 มกราคม 2011, 18:38:32
โอ้ว มีคนเอาของผมมาต่อยอดด้วย

(มีคนบอกว่าขายได้แล้วนะ)
^^

50kpm

[direct=https://goo.gl/1aohAU]บริการโพสเว็บประกาศ 100 เว็บ + สร้างลิ้งกลับมาเพื่อเพิ่มผลอันดับที่ดีในทาง SEO [/direct]

[direct=http://www.mom2babyshop.com/]เปลไกวไฟฟ้า[/direct] [direct=http://www.mom2babyshop.com/]เปลไฟฟ้า[/direct] [direct=http://www.mom2babyshop.com/]เปลไกวอัตโนมัติ[/direct]

minjaz

#10
ขอบคุณครับ



[direct=https://www.facebook.com/groups/1545044519144105/]

▄██████████████▄
█████████▀▀▀▀███
███████▀     ███
███████   ██████
█████        ███
███████   ██████
███████   ██████
▀██████   █████▀

[/direct]


[direct=https://www.facebook.com/groups/1545044519144105/]
❰❰❰❰ จะซื้อเหรียญ Crypto ก็กลัวติดดอย?
▰ ▰ งั้นมาล่าของฟรีกันดีกว่า ▰ ▰

[/direct]

cotton


stitch626


gabriel


BeerSkz


kaka


5account


nosferatoo

155store ก็ทำได้นะจิ๊  :-[ :-[ :-[

ลุ้นรับ 155store before valentine ได้ที่นี่ครับ อ่านกติกาก่อนนะ : http://www.thaiseoboard.com/index.php/topic,169952.msg2289558/topicseen.html#new

มาแจงข่าว เผื่อใครพลาดครับ

ไปละ
[direct=https://rycoop.com]สหกรณ์ ครูระยอง[/direct]

bigbossbear

[direct=http://goo.gl/zNCxI]★★ HOSTGATOR ลด 25%ทุกแพลน ใช้โค้ด 25offsavegator ด่วน!! คลิกเลย ★★
[/direct]

gotuktuk

Happy เฮงๆ รวยๆ 2013