PHP CURL และ FILE_GET_CONTENTS ต้องการดึงข้อมูลมาแสดงที่หน้าเว็บผมครับ

เริ่มโดย pongnakrab, 10 พฤศจิกายน 2014, 22:40:34

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

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

pongnakrab

ผมลองทดสอบแค่เอาหน้าเว็บทั้งหมดขึ้นมาแสดงนะครับ ยังไม่ได้ตัดข้อมูลส่วนที่ต้องการมา
ต้องการแค่รูปกับราคาครับ

<?php
$html = file_get_contents('http://www.1688.com/');
echo $html;
?> // ได้

<?php
$html = file_get_contents('http://yaojia188.1688.com/page/offerlist.htm');
echo $html;
?> // ไม่ได้


gd,lN


[direct=https://www.facebook.com/RukCom.in.th]เช่า Hosting ที่ไหนดี[/direct] [direct=https://goo.gl/XQp91t]Host ไทย[/direct][direct=https://goo.gl/Sushsj]ruk-com[/direct][direct=https://goo.gl/Hu3NsY]Hostatom[/direct][direct=https://twitter.com/siamlottery]บริการ ตรวจหวย[/direct]

pongnakrab

ขึ้นอยู่กับว่าทางเว็บเค้า block ด้วยใช่รึเปล่าครับ