Re: [PHP-ES] VEN USTEDES ALGO RARO EN ESTO??

[email protected] (Philipp Keweloh)
Newsgroups php.general.es
Message-ID <[email protected]>
Debes utilizar move_uploaded_file [1] en vez de copy, por razones de
seguridad/privacidad no es posible utilizar copy para archivos
transferidos por POST.

[1] http://es.php.net/move_uploaded_file

-- 
Philipp Keweloh

"Mejor que levantar la voz, reforzar el argumento" George Herbert

El día 27 de octubre de 2009 23:38, Irantzu Leunda Biskarret
<[email protected]> escribió:
> No me guarda la imagen en la carpeta correspondiente aun teniendo permisos
> 777
> Gracias!!!
>
> //carga de fichero y datos en la BD envio_archivos
>
> $foto=$_POST["foto"];
> $titulo=$_POST["titulo"];
> $url =$_POST["url"];
> $idioma =$_POST["idioma"];
>
> include ("../conexion_act.php");
> $link_act=Conectarse_act();
>
>
> copy($HTTP_POST_FILES['foto']['tmp_name'],
> "../imagenes/".$HTTP_POST_FILES['foto']['name']."");
> $foto = $_FILES["foto"]["name"];
>
> mysql_query("insert into enlaces (foto,titulo,url,idioma) values
> ('$foto','$titulo','$url','$idioma')",$link_act);
>
>
> --
> PHP Spanish Localization Talk Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.