su quello ho già verificato il path alla fine trova i file se li carico tramite ftp,ecco il codice completo nel file incriminato

<?

global $thumbdir, $imgdir;

include("config");

switch($mode)
{
case 'do_upload':

global $img, $thumb;

function DoUpload($dest, $file)
{

if (!(is_uploaded_file($file) && copy($file, "$dest")))
{
return false;
}

return true;

}

$res1 = DoUpload("$webroot$imgdir/$img_name", $img);
$res2 = DoUpload("$webroot$thumbdir/$thumb_name", $thumb);

if ($res1 = "true" && $res2 = "true")
{
$data = "$img_name|$thumb_name|$title|$author|$colore|$ann o|$km|$optional|$optional2|$prezzo";
if ($fp = fopen("imgdata", 'a+'))
{
$file = file("imgdata");
$lines = count($file);
if ($lines > "0")
{
fwrite ($fp, "\n$data");
}
else
{
fwrite ($fp, $data);
}
@unlink($img);
@unlink($thumb);
}
echo "<div style=\"font-family:arial, helvetica, sans-serif; color:red; font-size:10pt; font-weight:bold;\">Immagine aggiunta</div>";
}
else
{
echo "<div style=\"font-family:arial, helvetica, sans-serif; color:red; font-size:10pt; font-weight:bold;\">An error occured....</div>";
}
break;

case 'do_delete':
@delete_checked();
$t = count($marked);
echo "<div style=\"font-family:arial, helvetica, sans-serif; color:red; font-size:10pt; font-weight:bold;\">$t Oggetto(/i) eliminati....</div>";
break;
}
?>
magari si capisce meglio...