Upload file (PHP)

heya!

I am trying to do a script to upload a file, like this:

$dest_dir = "/home/webcindario/nunosantos/admin/";
copy ($fich,$dest_dir);

$dest_dir is the destinantion folder
$fich is the path of the file that is trying to upload

causes an error:

Warning: copy(C:\\Documents and Settings\\Administrador\\Ambiente de trabalho\\logo.gif): 
failed to open stream: No such file or directory 
in /home/webcindario/nunosantos/admin/up_meu.php on line 3

but i don’t no why… i have add chmod 777 to that folder … but doesn’t work :frowning:

thks :slight_smile: