Re: Upload a File

From: Date: Wed, 25 Apr 2001 17:37:20 +0000
Subject: Re: Upload a File
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-50325@lists.php.net to get a copy of this message
i tried: if (!move_uploaded_file($MyFile,"/home/vacamarela/public_html/rafael")) {
            echo "can't copy";
            exit;
} and retur "can't copy" my form is <input type=file name=MyFile size=40> :/ Rafael
Acesso fácil, rápido e ilimitado? Suporte 24hs? R$19,90? Só no AcessoBOL. http://www.bol.com.br/acessobol/ move_uploaded_file($newfile,"/complete/path/to/move/file/to"); My form variable for the file was called "newfile". That should help. It is very nice, just use it instead of copy and uyou should be good. Good luck. +-------------------------------------------------------------------+
|                                                                   |
|                  If Yoda so strong in force is,                   |
|             why words in proper order he cannot put?              |
|                                                                   |
+-------------------------------------------------------------------+
|                                                                   |
+-------------------------------------------------------------------+
| Daniel J. Cleveland                                               |
|                                   e-mail: dclevela@cnavsystems.com|
+-------------------------------------------------------------------+
--- [ 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 (#50325) next »