Upload a File

From: Date: Wed, 25 Apr 2001 17:21:35 +0000
Subject: Upload a File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50324@lists.php.net to get a copy of this message
Hey Guys,
i'm here thinking what i did wrong.....can u guys help me? i did 2 ways to upload a file and none of them work fine! :/ first way
       $folder = "/tmp";
       if(!copy($MyFile,$folder.$MyFile)){
             echo "can't copy";
       } else {
             echo "work it!";
       }
second way
       $folder = "/tmp";
       $dest = $folder."/".$MyFile_name;
       if(!move_uploaded_file($MyFile, $dest)) {
          echo "can't copy!";
          exit;
        }
so..... can someone help me please? i just have to make it to finish my job :/ thanks --- [ r a f a e l f a r i a] _____________________ _________________rafaelrfc@uol.com.br WebMaster Universo Online - http://www.uol.com.br Phone # +55 11 3038-8665

« previous php.general (#50324) next »