Ver Mensaje Individual
  #1 (permalink)  
Antiguo 05/08/2005, 02:50
sunevil
 
Fecha de Ingreso: julio-2005
Mensajes: 3
Antigüedad: 18 años, 8 meses
Puntos: 0
subir archivo a una unidad de red

pues lo dicho tengo un script para poder subir ficheros:

$path = "S:\soporte";
$path2 = "C:\Appserv\www\archivos";
if($archivo == NULL)
{
echo"ho hay nada";
}
else {
$fichero = $path2 . "/" . $archivo_name;
copy($archivo, $fichero);

echo "subido";
echo $fichero;
}

el problema esta en q a $path2 lo sube sin problemas pero a $path no,S:\ es una unidad de red alojada en otro ordenador...el error q me da es :
Warning: copy(S:\soporte/Doc1.doc): failed to open stream: No such file or directory in c:\appserv\www\subir.php on line 15

alguna sugerencia?