How to fix PHP Notice: Use of undefined constant tmp_name ?

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

 



My file uploader doesn't work since I update the php verdion. One notice I found was "Use of undefined constant tmp_name" and others....

A piece of the problem script:

$url = $_FILES['url'];
if(file_exists("Imagem1/$url[name]")) {
$url2 = $url_name."1";
} else {
$url2 = $url_name;
}
if(!copy($url[tmp_name], "Imagem1/$url2")) {
}
$urlf = $root."Imagem1/$url2";

Thanks in advance for some help.

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