Re: [PHP-DB] php + mysql + copy file

[email protected] ("tacio vilela")
Newsgroups php.db
Message-ID <[email protected]>
Hi,

try this,

$carpeta = $_SERVER['DOCUMENT_ROOT']."/subidos"; // nombre de la carpeta ya
creada. chmool 777 (todos los permisos)
copy($_FILES['file']['tmp_name'] , $carpeta . $_FILE['file']['name']);

Regards,
Tacio Vilela


2008/4/2 Chris <[email protected]>:

>
>          $carpeta = "subidos"; // nombre de la carpeta ya creada. chmool
> > 777
> > (todos los permisos)
> >
> >         copy($_FILES['file']['tmp_name'] , $carpeta . '/' . $_FILE
> > ['file']['name']);
> >
>
> 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 Database Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
>
>


-- 
/*******************************************
*** ***
*** Tácio Vilela ***
*** MSN: [email protected] ***
*** SKYPE: taciovilela ***
*** ***
*******************************************/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.