ทำไมตอนเปิด เวป ใน localhost บนคอมใช้appserve ใช้งานได้ แต่พออัพแล้วใช้งานไม่ได้

เริ่มโดย tangmo12, 17 พฤศจิกายน 2009, 11:57:45

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

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

tangmo12

อ้างถึงจาก: konlata ใน 17 พฤศจิกายน 2009, 16:57:26
อ้างถึงจาก: tangmo12 ใน 17 พฤศจิกายน 2009, 12:30:47
อ้างถึงจาก: ahon ใน 17 พฤศจิกายน 2009, 12:27:08
คุณ ลอง เอา ob_start();
ไปไว้ที่ทัดแรกของ  img.php

เว็บสวยดีครับ

ob_start();
<?
   function getimg($imgname, $folder, $flag="wizmall"){
      $path = "../config/uploadfolder/productimg/".$folder."/".$imgname;
      if( file_exists($path) == FALSE ) exit ;
      $fsize = filesize($path) ;
      $o_file = base64_decode($imgname);
      $ext = substr(strrchr($o_file, "."), 1);
      //header("Content-Type: image/".$ext) ;
      //header("Content-Length: $fsize") ;
      $fd = fopen($path, "rb") ;
      print fread ($fd, $fsize ) ;
      fclose ($fd) ;
      exit ;
   }
getimg($imgname, $folder, $flag);
?>

แบบนี้รึป่าวคะ

เวป เป็นฟรี script นะคะ ของเกาหลีคะ ชื่อ wizmart คะ



ลองเปลี่ยน จาก getimg($imgname, $folder, $flag); เป็น  getimg($_GET['imgname'], $_GET['folder'], $_GET['flag']);





การี๊ดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดดด
ได้แล้วคะ

ขอบคุณมากๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ เลยนะคะ ^^ ดีใจจังเลยยยยยยยยยยยยยยยยยยยยยยยยยยยยยยย   :wanwan019:


ขอบคุณมากกกกๆๆๆจิงๆคะ
[direct=http://www.123homecondo.com][/direct]
[direct=http://www.123homecondo.com]ขายคอนโด[/direct]  |  [direct=http://www.123homecondo.com]ขายบ้าน[/direct]  |  [direct=http://www.123homecondo.com]คอนโดให้เช่า[/direct]  |  [direct=http://www.123homecondo.com]ลงประกาศขายบ้านฟรี[/direct]

tangmo12

อ้างถึงจาก: ahon ใน 17 พฤศจิกายน 2009, 16:46:03
ยู้ฮู ผมเพิ่งมา ถ้ายังไม่ได้
แล้ว รอแปบ เดี๋ยวผมดูให้   5.40
ลอง  ใส่แทน  getimg() เดิมใน img.php
function getimg($imgname, $folder, $flag="wizmall"){
echo "---" . $imgname . "--<br>" ;
echo "---" . $folder. "--<br>" ;
}


ขอบคุณมากๆๆๆๆๆๆๆๆๆๆๆๆๆๆ เลยนะคะ คุณ ahon

้ถ้าไม่ได้ความช่วยเหลือนี่แย่เลยยยย


ขอบคุณมากๆๆๆๆๆๆๆจิงๆนะคะ ซึ้งในน้ำใจมากๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆๆ ขอบคุณมากกกกคะ

สรุปว่า แก้โดย ลองเปลี่ยน จาก getimg($imgname, $folder, $flag); เป็น  getimg($_GET['imgname'], $_GET['folder'], $_GET['flag']);

ตามคำแนะนำของคุณ konlata คะ

[direct=http://www.123homecondo.com][/direct]
[direct=http://www.123homecondo.com]ขายคอนโด[/direct]  |  [direct=http://www.123homecondo.com]ขายบ้าน[/direct]  |  [direct=http://www.123homecondo.com]คอนโดให้เช่า[/direct]  |  [direct=http://www.123homecondo.com]ลงประกาศขายบ้านฟรี[/direct]

ahon

[direct=http://hotelandresortthailand.com]█ โปรโมชั่นโรงแรม By Hotel&Resort █[/direct]
[direct=http://hotelandresortthailand.com/search.php?destination=73]█ รีวิวโรงแรมเชียงใหม่ By Hotel&Resort█[/direct]  จะไปเที่ยวเชียงใหม่ ดูก่อนนะครับ

tangmo12

[direct=http://www.123homecondo.com][/direct]
[direct=http://www.123homecondo.com]ขายคอนโด[/direct]  |  [direct=http://www.123homecondo.com]ขายบ้าน[/direct]  |  [direct=http://www.123homecondo.com]คอนโดให้เช่า[/direct]  |  [direct=http://www.123homecondo.com]ลงประกาศขายบ้านฟรี[/direct]

raptor

ไม่เป็นไรครับ   เล็กน้อยครับ    :wanwan002:
จ๊ากกกกก ล้อเล่นนะครับ ไม่เกี่ยวไรกับเค้าเลยครับ ช่วยไรไม่ได้เลยครับ
เข้ามายินดีด้วยเฉย ๆ ครับ ติดตามดูอยู่เหมือนซีรี่เกาหลีเลยครับ  :wanwan017:

chui761

[direct=http://secure.hostgator.com/~affiliat/cgi-bin/affiliates/clickthru.cgi?id=amazonnrr]เช่าโฮสเกเตอร์ Promotion ลด 50% click[/direct]|
Hostgator คูปอง Baby plan เดือนแรก 0.01$=TSBSAVE001 หลายเดือนลด 25%=TSBSAVE025 |[direct=http://www.amzhowto.com/websitemap/]สอน Clickbank Amazon CPA/Payday Viglink เช่าโฮสต์นอก จดโดเมนราคาถูก[/direct]
[direct=http://support.hostneverdie.com/aff.php?aff=156]เช่าโฮสต์ไทย hostneverdie[/direct]
[direct=http://hosterbox.com/billing/aff.php?aff=139]Hosterbox Host นอกราคาประหยัด คุณภาพดีไม่แพ้ gator[/direct]

tangmo12

[direct=http://www.123homecondo.com][/direct]
[direct=http://www.123homecondo.com]ขายคอนโด[/direct]  |  [direct=http://www.123homecondo.com]ขายบ้าน[/direct]  |  [direct=http://www.123homecondo.com]คอนโดให้เช่า[/direct]  |  [direct=http://www.123homecondo.com]ลงประกาศขายบ้านฟรี[/direct]

@@@

รับซื้อเว็บ 100uip ต่อวันขึ้นไป [direct=http://www.rommit.com/forex]EA Forex[/direct]