Ver Mensaje Individual
  #1 (permalink)  
Antiguo 24/11/2008, 17:06
Avatar de cooosmos
cooosmos
 
Fecha de Ingreso: marzo-2007
Ubicación: mexico
Mensajes: 54
Antigüedad: 17 años, 1 mes
Puntos: 4
Sonrisa Problema al subir fotos: failed to open stream: No such file or directory in

Hola, aqui de nuevo con mis dudas, resulta que estoy probando un script, pero me esta fallando la parte para subir fotos,

Aclaro he revisado el foro, y me he topado con temas similares, pero en si no vi una respuesta que me ayude a solucionar este tema...


aqui les dejo el error

Warning: move_uploaded_file(yucaflog.com/photos/613f4e5a55cfc01c1b4869e9e6753236.jpeg) [function.move-uploaded-file]: failed to open stream: No such file or directory in /home/yucaflog/public_html/user.php on line 948

Warning: move_uploaded_file() [function.move-uploaded-file]: Unable to move '/tmp/phpJtfXtE' to 'yucaflog.com/photos/613f4e5a55cfc01c1b4869e9e6753236.jpeg' in /home/yucaflog/public_html/user.php on line 948

Warning: imagecreatefromjpeg(yucaflog.com/photos/613f4e5a55cfc01c1b4869e9e6753236.jpeg) [function.imagecreatefromjpeg]: failed to open stream: No such file or directory in /home/yucaflog/public_html/user.php on line 952

Warning: getimagesize(yucaflog.com/photos/613f4e5a55cfc01c1b4869e9e6753236.jpeg) [function.getimagesize]: failed to open stream: No such file or directory in /home/yucaflog/public_html/user.php on line 958

ahora las lineas de codigo donde marca el error
la linea 948

Código PHP:
        move_uploaded_file($tmpfname,$base_path."/photos/".$newname.$p_type); 
la carpeta photos tiene permisos 777
de la linea 952 hasta las 958

Código PHP:
                        //creating thumbnails
            
if($p_type==".jpeg"){
            
$srcImage ImageCreateFromJPEG$old );
            }
//elseif
            
elseif($p_type==".gif"){
            
$srcImage ImageCreateFromGIF$old );
            }
//elseif
        
            
$sizee=getimagesize($old);
            
$srcwidth=$sizee[0];
            
$srcheight=$sizee[1]; 
agradeceria cualquier sugerencia, ayuda, tip.... etc. etc..

gracias de antemano.