|  | 
	                
  
    | 
	 
        ปัญหา เรื่อง imagestring  ปัญหา คือ ห้าม วาง ไว้ใน Tag Body ครับ $name คือ ชื่อรูปคับ แล้วพอดูหนังสือเค้าบอกให้ทำแบบ นี้     |  
    |  |  
 
	
		|  |  |  |  |  
		|  |  | 
          
            | ///////////////// ไฟล์ pic.php
 header("Content-type: image/jpeg");
 $image = "photo/$name";
 $string = "Thaiweb.com"; // ¢éͤÇÒÁ
 $im = imagecreatefromjpeg($image); // ·ÕèÍÂÙè¢Í§ÃÙ»ÀÒ¾
 $color = imagecolorallocate($im, 120, 210, 6); // Êբͧ¢éͤÇÒÁ
 $color_2 = imagecolorallocate($im, 250, 0, 0); // Êբͧ¢éͤÇÒÁ
 //$px = (imagesx($im) - 6.5 * strlen($string)) / 2; // µÓá˹觢ͧ String
 $images_orig = ImageCreateFromJPEG($image);
 $photoX = ImagesX($images_orig);
 $photoY = ImagesY($images_orig);
 imagestring ($im, 5, $photoX-140,$photoY -20, $string, $color);
 imagestring ($im, 5, $photoX-141,$photoY -22, $string, $color_2);
 imagejpeg($im);
 imagedestroy($im);
 /// End File //
 
 ปัญหา คือ ห้าม วาง ไว้ใน Tag Body ครับ
 $name คือ ชื่อรูปคับ
 แล้วพอดูหนังสือเค้าบอกให้ทำแบบ นี้ <img src=../pic.php $brd alt=คลิ๊กที่ภาพ> แต่ว่า จะส่งชื่อรูปไปยังไงเหรอครับ
 ช่วยทีน่ะครับ
 
 
 Tag : - - - -
 
 |  
            |  |  
            | 
              
                |  |  |  |  
                |  | 
                    
                      | Date :
                          17 ธ.ค. 2548  19:59:29 | By :
                          boy | View :
                          2242 | Reply :
                          4 |  |  |  
                |  |  |  |  |  
            |  |  
		            |  |  
		|  |  |  |  |  
  
    | 
 
        
          |  |  |  |  |  
          |  |  | 
            
              | ถ้าเกิด ต้อง การ ทับข้อความ ลงไปกับ รูปเลย ต้องทำยังไง หรอคับ 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            17 ธ.ค. 2548  20:39:58 | By :
                            boy |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              | งง คับกำลังบอกอะไร แล้วอะไรคือคำถามคับ ละเอียดอีกนิดก็ดีคับ
 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            18 ธ.ค. 2548  11:51:55 | By :
                            nut_t02 |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  
 
        
          |  |  |  |  |  
          |  |  | 
            
              | $im     = imagecreatefrompng("images/button1.png"); $textcolor = imagecolorallocate($im, 0, 0, 255);
 imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
 imagepng($im);
 
 ประมาณนี้ได้ป่ะคับ
 
 |  
              | 
                
                  |  |  |  |  
                  |  | 
                      
                        | Date :
                            22 ธ.ค. 2548  01:28:37 | By :
                            nut_t02 |  |  |  
                  |  |  |  |  |  |  |  
          |  |  |  |  |  |  |