I want to send a image in a HTML message, but I don't want to reference an URL to load it.
That's because my computer is not in Internet and isn't accesible for load this image. I'm trying to use the following code, but didn't function, just suspend the PHP commands before the LoadGif instruction, browsing the page without error message. <?php printf("<SCRIPT>\n"); function LoadGif($imgname) { $im = @imagecreatefromgif($imgname); // Attempt to open if ($im == "") { // See if it failed $im = ImageCreate(150,30); // Create a blank image $bgc = ImageColorAllocate($im,255,255,255); $tc = ImageColorAllocate($im,0,0,0); ImageFilledRectangle($im,0,0,150,30,$bgc); ImageString($im,1,5,5,"Error loading $imgname",$tc); // Output an errmsg } return $im; } LoadGif("http://sgil/seguros/images/logo.gif"); . . printf("}\n document.onload = CargaPantalla();"); printf("</SCRIPT>\n"); ?> Someone can help me? Thanks. -- PHP Install Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php