ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> php-spanish
php-spanish
Re: [PHP-ES] VEN USTEDES ALGO RARO EN ESTO??
by Philipp Keweloh other posts by this author
Oct 27 2009 4:54PM messages near this date
[PHP-ES] VEN USTEDES ALGO RARO EN ESTO?? | Re: [PHP-ES] VEN USTEDES ALGO RARO EN ESTO??
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
<irantzu@[...].net>  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
> 
> 

--
PHP Spanish Localization Talk Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
Thread:
Irantzu Leunda Biskarret
Philipp Keweloh
Carlos

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved