![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
08/07/2010, 07:23
|
| | Fecha de Ingreso: marzo-2010
Mensajes: 38
Antigüedad: 14 años, 11 meses Puntos: 0 | |
problema con funcion de GD En la carpeta www del servidor tengo otra carpeta que se llama proyecto dentro de ella tengo una imagen que se llama imagen y tiene extencion jpeg y un archivo php con este codigo
<?php
$im = imagecreatefromjpeg("image.jpeg");
header("Content-type: ");
imagejpeg($im);
imagedestroy($im);
?>
Al ejecutar el codigo tengo estos errores
Warning: imagecreatefromjpeg(image.jpeg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in C:\wamp\www\proyecto\prueba2.php on line 2
Warning: Cannot modify header information - headers already sent by (output started at C:\wamp\www\proyecto\prueba2.php:2) in C:\wamp\www\proyecto\prueba2.php on line 3
Warning: imagejpeg(): supplied argument is not a valid Image resource in C:\wamp\www\proyecto\prueba2.php on line 4
Warning: imagedestroy(): supplied argument is not a valid Image resource in C:\wamp\www\proyecto\prueba2.php on line 5 |