warning en imagen
| From: | Federica Pavese | Date: | Tue, 13 Nov 2001 13:43:36 +0000 |
| Subject: | warning en imagen | ||
| Groups: | php.general.es | ||
| Request: | Send a blank email to general-es+get-15605@lists.php.net to get a copy of this message | ||
Copié del manual el código que está más abajo y obtengo este error.
Warning: imagepng: unable to open 'pic.png' for writing in
/usr/local/apache/htdocs/pruebas/prueba.php on line 12
Agradezco toda ayuda.
Federica
..
..
..
<html>
<head>
</head>
<body>
<?php
$pic=ImageCreate(600,600);
$col1=ImageColorAllocate($pic,200,200,200);
$col2=ImageColorAllocate($pic,0,0,255);
ImageFilledRectangle($pic,1,1,100,100,$col2);
ImagePNG($pic,"pic.png");
ImageDestroy($pic);
?>
<img src="pic.png" border=0>
</body>
</html>