Re: copy() not working

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Peter,

Tuesday, November 16, 2004, 1:58:48 PM, you wrote:

PL> if($File) {
PL>   if(copy($File, $File_name)) {
PL>    echo 'The image was not uploaded!';
PL>   } else {
PL>    echo 'The file was not uploaded!';
PL>   }
PL>  }

PL> It does not even enter the if($File) part (checked it witch echos).

Do you have Register Globals turned on or off?

If they are off (as they should be), this script will not work.

You should really use move_uploaded_file() to move the file rather
than copy.

And check the $_FILES array for your file name, size, etc.

Best regards,

Richard Davey
-- 
 http://www.launchcode.co.uk - PHP Development Services
 "I am not young enough to know everything." - Oscar Wilde

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


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux