ผมพึ่งลอง script นี้ แต่มันขึ้นแบบนี้ แก้ไขอย่างไรครับ

ไฟล์ config.php ท่านใส่ถูกแล้วใช้มั้ยครับ
aws ต้องตรงกับ tracking รึเปล่า ผมไม่แน่ใจนะ
เมื่อกี้ผมลองแก้เอง(จากไฟล์กระทู้เดิมนะครับ ไม่ใช่ไฟล์กระทู้นี้) แล้วมัน run ไม่ได้เหมือนกัน เลยขี้เกียจหา
แก้ไขแล้วยังไม่หายเลยครับ
งง จัง พอดีไม่เคยลอง 155 นี้ครับ
ขอบคุณครับ
ตาม
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in /home/user/public_html/domain.com/anv4/amazonv4.php on line 155
บรรทัดที่ 155 คือ $sfile=file_get_contents($file);
URL file-access is disabled in the server configuration in /home/user/public_html/domain.com/anv4/amazonv4.php on line 155
คิดว่า host ท่านห้ามใช้ function นี้นะครับ
ขอบคุณมากๆ ครับ พอมีวิธีแก้ไม่ครับ
ลองเปลี่ยนมาใช้ curl แทน file_get_contents ดูครับ
ตรงบรรทัด 155 แก้ $sfile=file_get_contents($file);
เพิ่มฟังก์ชั่นไป ประมาณนี้
function get_content($URL) {
$ch = curl_init();
$timeout = 0; // set to zero for no timeout
$useragent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1)";
curl_setopt($ch, CURLOPT_USERAGENT, $useragent);
curl_setopt ($ch, CURLOPT_URL, $URL);
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_CONNECTTIMEOUT, $timeout);
$String = curl_exec($ch);
curl_close($ch);
return $String;
}
$sfile=get_content($file);