Ver Mensaje Individual
  #1 (permalink)  
Antiguo 12/09/2003, 06:46
kaS_aPPeaL
 
Fecha de Ingreso: septiembre-2003
Mensajes: 96
Antigüedad: 20 años, 7 meses
Puntos: 3
Problemas con move_uploaded_file

En la página del formulario tengo puesto:

<html>
<head>
<title>PRUEBA</title>

</head>

<body>
<form action="prueba2.php" method="post" enctype="multipart/form-data" name="form1">
Texto del Mensaje:<br>
<textarea name="mensaje" cols="50" rows="8" id="mensaje"></textarea>
<br>
Fichero a Adjuntar:
<input name="fichero" type="file" id="fichero">
<input name="max_file_size" type="hidden" id="max_file_size" value="1000">
<br>
<input type="submit" name="Submit" value="Enviar Datos">

</form>
</body>
</html>

Y en la página que recoge el formulario:

<html>
<head>
<title>PRUEBA 2</title>

</head>

<body>
<? move_uploaded_file($_FILES['archivo']['name'], "/PHP/fotos/"); ?>
</body>
</html>

En el archivo php.ini, en la parte de doc_root tengo:

doc_root ="C:\Documents and Settings\kaS\Escritorio\Webs\"

Y en el archivo httpd.conf de apache, en la parte de DocumentRoot tengo:

DocumentRoot "C:/Documents and Settings/kaS/Escritorio/Webs"

Quiero que el archivo vaya a "C:\Documents and Settings\kaS\Escritorio\Webs\PHP\fotos\"

Con todo esto, al subir el archivo no hay manera de que se mueva a la carpeta indicada, ¿Por qué puede ser?

NOTA: Tengo activado Registar Globals y la propiedad de subir archivos y no supera el límite máximo de tamaño.