שגיאה בקוד הבא:
PHP קוד:
$logofiles="logo.png";
$wh = "upload/";
$dir = opendir($wh);
if (is_dir($wh)) {
if ($dh = opendir($wh)) {
while (($file = readdir($dh)) !== false) {
list($w,$h)=getimagesize($logofiles);
list($wsh,$hw)=getimagesize($wh);
$image = imagecreatefromdir($wh);
$logofile= imagecreatefromdir($logofiles);
imagecopymerge ($image, $logofile, ($wsh-$w), ($hw-$h), 0, 0, $w, $h,100);
imagegif ($image,$wh);
}
closedir($dh);
}
}
השגיאה:
ציטוט:
Warning: getimagesize() [function.getimagesize]: Read error!
Fatal error: Call to undefined function: imagecreatefromdir()
|