Re: [PHP-ES] VEN USTEDES ALGO RARO EN ESTO??
[email protected] ("Carlos")
| Newsgroups | php.general.es |
|---|---|
| Message-ID | <89F5BE7ED722479999C649B4FF42D3F9@portatil> |
Yo veo raro el uso de $HTTP_POST_FILES en lugar de $_FILES, en según que versiones/configuraciones de php solo te funcionará $_FILES. Segúun creo el uso de $HTT... ha sido reemlazado por $_FILES Saludos Carlos ----- Original Message ----- From: "Irantzu Leunda Biskarret" <[email protected]> To: <[email protected]> Sent: Tuesday, October 27, 2009 11:38 PM Subject: [PHP-ES] VEN USTEDES ALGO RARO EN ESTO?? > 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 > -------------------------------------------------------------------------------- No virus found in this incoming message. Checked by AVG - www.avg.com Version: 8.5.423 / Virus Database: 270.14.34/2463 - Release Date: 10/27/09 15:50:00