Re: php + copy file

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

 




         $carpeta = "subidos"; // nombre de la carpeta ya creada. chmool 777
(todos los permisos)

         copy($_FILES['file']['tmp_name'] , $carpeta . '/' . $_FILE
['file']['name']);

<copied straight from my reply to the same question on php-db>

It's $_FILES not $_FILE (an 's' on the end).

It's always worth using error_reporting(E_ALL) and ini_set('display_errors', true) when doing development, this would have triggered a notice or warning (can't remember which).

--
Postgresql & php tutorials
http://www.designmagick.com/

--
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