sembra andare tutto bene, stavo esportando sul server quel poco che avevo fatto....
ma incappo in un problema...
premetto che in locale va tutto bene....
il codice
Codice PHP:
for($i=0;$i<$numprod;$i++)
{
mysql_query(" insert into $m
values
('$idprod','$catid','$scatid','$offerta[$i]','$offertissima[$i]','$nomeprod[$i]','$desprod[$i]','$prezpord[$i]','$prezprodO[$i]','$datat');",$db);
//spostamento immagine sul server
$path="immagini/grandi/";
$TMPDIR="tmp/";
$filename=$HTTP_POST_FILES["myfile".$i.""]["tmp_name"];//myfile è il nome del campo file del form
$realname=$HTTP_POST_FILES["myfile".$i]["scatid".$i.""];
if (is_uploaded_file($filename) && ((filesize($filename ))<500000))
{ echo $realname2;
$realname2="$realname";
$newname=($namez.$idprod.".gif");
move_uploaded_file($filename,("immagini/grandi/".$newname));
$orig="immagini/grandi/".$newname;
$thumb="immagini/piccole/".$newname;
$w=77;
$h=62;
$q=100;
thumbnail_jpeg($orig,$thumb,$w,$h,$q);
$idprod++;
}
}
gli errori
codice:
Warning: Unable to create 'immagini/grandi/xx.gif': Permission denied in /home/virtual/site45/fst/var/www/html/insprod2.php on line 508
Warning: getimagesize: Unable to open 'immagini/grandi/Colubri14.gif' for reading. in /home/virtual/site45/fst/var/www/html/insprod2.php on line 400
Warning: Division by zero in /home/virtual/site45/fst/var/www/html/insprod2.php on line 405
Warning: imagecreatetruecolor(): requires GD 2.0 or later in /home/virtual/site45/fst/var/www/html/insprod2.php on line 407
il committente paga ad un hosting circa 400€ l'anno x il mantenimento del sito...non ditemi che non ho permessi e nemmeno librerie gd che anche aruba da...
illuminatemi d'immenso