09-06-07, 20:10
|
# 9
|
הנהלת הפורום לשעבר
|
ציטוט:
נכתב במקור על ידי X-T
קצת תיקונים בהקשר למה שאמרת
PHP קוד:
$logofiles="logo.png"; $wh = "upload/"; if (is_dir($wh)) { if ($dh = opendir($wh)) { while (($file = readdir($dh)) !== false) { list($w,$h)=getimagesize($logofiles); list($wsh,$hw)=getimagesize($file); $image = imagecreatefromdir($file); $logofile= imagecreatefromdir($logofiles); imagecopymerge ($image, $logofile, ($wsh-$w), ($hw-$h), 0, 0, $w, $h,100); imagegif ($image,$file); } closedir($dh); } }
Same errors...
|
לא התייחסת ל-א' שכתבתי...
ציטוט:
א. אין כזאת פונקציה imagecreatefromdir לא יודע מאיפה המצאת אותה...
|
וגם אחרי זה לא בטוח שזה יעבוד, ראה סעיף ג'.
|
|
|