Einzelnen Beitrag anzeigen

Exterminans

Registriert seit: 13. Jun 2011
20 Beiträge
 
Delphi 7 Enterprise
 
#43

AW: Indy für Dummies

  Alt 15. Jun 2011, 16:15
Code:
<?php
$returnValue = "FAIL";

if(isset($_GET['Dir']))
{
   $uploaddir = $_GET['Dir'];

   if (is_uploaded_file($_FILES['file']['tmp_name']))
   {

 $uploadfile = $uploaddir.basename($_FILES['file']['name']);

if (move_uploaded_file($_FILES['file']['tmp_name'], $uploadfile))
{
            $returnValue = "SUCCESS";
}
   }
}

echo $returnValue;
?>
Fabian
  Mit Zitat antworten Zitat