Takze robim jeden projekt ale vzdy ked spustim index.php vyhodi mi to toto v header-y (este pred uploadom)
Warning: copy() [function.copy]: Filename cannot be empty in /home/qwasyxcv/public_html/v/index.php on line 4017
-------------
v PHP
riadok 4017: if(copy($HTTP_POST_FILES['ufile']['name'],
$path))
$path= "upload/".$HTTP_POST_FILES['ufile']['name'];
777 mam nastavene uz si neviem dat rady
------------
cely kod
Kód:
//set where you want to store files
$path= "upload/".$HTTP_POST_FILES['ufile']['name'];
$file = "upload/".$HTTP_POST_FILES['ufile']['name'];
if($ufile !=none)
{
if(copy($HTTP_POST_FILES['ufile']['tmp_name'], $path))
{
echo "Successful<BR/>";
echo "File Name :".$HTTP_POST_FILES['ufile']['name']."<BR/>";
echo "File Size :".$HTTP_POST_FILES['ufile']['size']."<BR/>";
echo "File Type :".$HTTP_POST_FILES['ufile']['type']."<BR/>";
echo "<img src=\"$path\" width=\"150\" height=\"150\">";
}
else
{
echo "Welcome";
}
}
if(empty($err)) {
copy($tempname, "upload/".$name);
}
else {
foreach($err as $error)
echo "$error";
}