Ver Mensaje Individual
  #1 (permalink)  
Antiguo 09/03/2004, 18:56
Avatar de Cuezaltzin
Cuezaltzin
 
Fecha de Ingreso: diciembre-2003
Ubicación: Frente al Monitor
Mensajes: 252
Antigüedad: 20 años, 4 meses
Puntos: 0
Exclamación Falla en Upload

Hola a todos. Esto me urge. Ayuda por favor

Tengo el siguiente problema cuando quiero subir una imagen y ademas poner el nombre del archivo en mi base de datos.

Primero la probe localmente en mi maquina y no hay ninguna falla el problema es cuando la pongo en Internet me marca el siguiente error:

Warning: Unable to create 'Imagenes/m11.jpg': Permission denied in \\172.21.6.16\s004\crushe.com.mx\Prueba.php on line 6

Warning: Unable to move 'C:\WINNT\TEMP\phpED4.tmp' to 'Imagenes/m11.jpg' in \\172.21.6.16\s004\crushe.com.mx\Prueba.php on line 6

Mi codigo es el siguiente:

<?

if (isset ($addubica)) {

$newimage = sprintf ("Imagenes/%s", $upimagen_name);
move_uploaded_file($upimagen, $newimage);


$link = mysql_connect("172.16.253.90","login", "password");

mysql_select_db("base", $link);

$sql = "INSERT INTO productos (Imagen) ";

$sql .= "VALUES ('$newimage')";

$result = mysql_query($sql);

}


?>
<html>
<head>
<title>UPLOAD</title>
</head>

<body>

<form action="<?php echo$PHP_SELF ?>" method="post" enctype="multipart/form-data" name="ubicaform2" id="ubicaform2">
<input name="addubica" type="submit" id="addubica" value="subir imagen">
Imagen: <input name="upimagen" type="file" id="upimagen">

</form>
</body>
</html>
__________________
Hasta la victoria Siempre.

Última edición por Cuezaltzin; 10/03/2004 a las 13:53