| 
 Posted by Darkbyte [Work] on 07/06/61 11:36 
> What??? This code is nonsensical! 
 
Ja!!! It's true, but I changed the code to some other: 
 
function create_my_image($w=1, $h=1) 
{ 
   $img = @imagecreatetruecolor($w, $h); 
   if ($img) 
   { 
     /* Other stuff here */ 
   } 
   return $img; 
} 
 
and I use it as: 
 
<?php 
   include("inc/mod_image.php"); 
 
   if ($my_img = create_my_image(320, 200)) 
   { 
     /* Other stuff to the image */ 
 
     header("Content-type: image/png"); 
     imagepng($my_img); 
 
     imagedestroy($my_img); 
   } 
?> 
 
This should work better... or shouldn't? 
 
--  
When ignorants were more, everything was better... 
(A. Celentano) 
 
Per rispondermi in privato: 
s e p r a n o(punto)a n t o n i o(chiocciola)l i b e r o(punto)i t
 
[Back to original message] 
 |