Image in HTML Message

From: Date: Tue, 09 Apr 2002 01:35:46 +0000
Subject: Image in HTML Message
Groups: php.install 
Request: Send a blank email to php-install+get-6587@lists.php.net to get a copy of this message
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.

« previous php.install (#6587) next »