On Tue, 2004-11-16 at 14:58 +0100, Peter Lauri wrote:
> Best groupmember,
> 
> I am implementing a script to upload a file to my webserver. I am using this
> form that I copied from a working application:
> 
[ snipped ]
> To handle the form I am using this script...
> 
> if($File) {
>   if(copy($File, $File_name)) {
>    echo 'The image was not uploaded!';
>   } else {
>    echo 'The file was not uploaded!';
>   }
>  }
> 
> It does not even enter the if($File) part (checked it witch echos).

Use move_uploaded_file() -- and read
http://www.php.net/manual/en/features.file-upload.php
-- 

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to