Fw: [PHP-ES] Upload de ficheros

From: Date: Mon, 06 May 2002 10:15:03 +0000
Subject: Fw: [PHP-ES] Upload de ficheros
Groups: php.general.es 
Request: Send a blank email to general-es+get-22230@lists.php.net to get a copy of this message
Hola a todos, Tengo un pequeño problema y es el siguiente: Warning: Unable to create '../ficheros/': Is a directory in ......../prueba2.php on line 86 if ($boton=="Enviar"){ $ruta="../ficheros"; for ($i=0; $i<$num; $i++){ $fichero="fichero$i"; $fichero=${$fichero}; if ($fichero[$i]!=""){ $nombre="fichero".$i."_nom"; $nombre=${$nombre}; $fichero_destino="$ruta/".$nombre; copy("$fichero", "$fichero_destino") or die ("No se puede copiar el fichero $nombre"); } } } La línea 86 es: copy("$fichero", "$fichero_destino") or die ("No se puede copiar el fichero $nombre"); Por qué me puede dar este problema ?? Nota para Angel Fenoy: (muchas gracias por tu ayuda) Un saludo y gracias

« previous php.general.es (#22230) next »