Ver Mensaje Individual
  #1 (permalink)  
Antiguo 20/02/2004, 11:11
pansho
 
Fecha de Ingreso: septiembre-2003
Ubicación: Hondarribia
Mensajes: 32
Antigüedad: 20 años, 7 meses
Puntos: 0
Carpeta temporal

A ver cuándo acabo con esto...

Lo que estoy intentado es crear una carpeta temporal en mi servidor para que se inserten allí las imágenes. Esto es lo que hago

Código PHP:
<?php
foreach($_FILES as $tagname=>$objekt)
{
 
// get the temporary name (e.g. /tmp/php34634.tmp)
 
$tempName $objekt['tmp_name'];
 
 
// get the real filename
 
$realName $objekt['name'];
 
 
// creamos la carpeta temporal
  
mkdir("$DOCUMENT_ROOT/pruebas/jupload/$tempName");
 {
 
// where to save the file?
 
$target "$DOCUMENT_ROOT/pruebas/jupload/$tempName/$realName";

 
// print something to the user
 
echo "<br>Processing file $realName...\n";
 
flush();
 
 
// move the file to the target directory
 
move_uploaded_file($target);
 
  
// end of iteration
 
echo "next file...\n";
 
flush();
}
?>
Hago esto pero no se me crea la carpeta temporal. Me da este error:

Parse error: parse error
in /home/httpd/vhosts/midominio.com/httpdocs/pruebas/jupload/JUpload.php on line 71

Alguien sabe cómo hacerlo??
Gracias una vez más.