![Antiguo](http://static.forosdelweb.com/fdwtheme/images/statusicon/post_old.gif)
09/08/2005, 17:40
|
| | Fecha de Ingreso: enero-2002
Mensajes: 1.872
Antigüedad: 23 años, 1 mes Puntos: 3 | |
claudio, yo tengo el siguiente codigo
if (is_uploaded_file($HTTP_POST_FILES['archivo']['tmp_name'])) {
copy($HTTP_POST_FILES['archivo']['tmp_name'], "rollarampiberica.com/admin/noticias/archivos/");
$link= "http://www.rollarampiberica.com/admin/noticias/archivos/";
$connect=mysql_connect("localhost","","") or die(mysql_error());
"UPDATE noticias SET titulo='$titulo', texto='$texto', archivo='$link' WHERE idnoticia='$idnoticia'";
$selec=mysql_select_db("") or die(mysql_error());
$query=mysql_query($sql) or die(mysql_error());
$mensaje .= "Noticia introducida correctamente. ";
$mensaje .= "Gracias.";
echo $mensaje;
} else {
echo "Possible file upload attack. Filename: " . $HTTP_POST_FILES['archivo']['name'];
}
y me da el :
Possible file upload attack. Filename:
q hago mal?
salu2 |