אשכול: שאלה ב PHP
View Single Post
ישן 09-06-07, 20:10   # 9
meshuga
הנהלת הפורום לשעבר
 
meshuga's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 7,601

meshuga לא מחובר  

ציטוט:
נכתב במקור על ידי 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);
            
$logofileimagecreatefromdir($logofiles);  
            
imagecopymerge ($image$logofile, ($wsh-$w), ($hw-$h), 00$w$h,100);
            
imagegif ($image,$file);
        }
        
closedir($dh);
    }

Same errors...
לא התייחסת ל-א' שכתבתי...
ציטוט:
א. אין כזאת פונקציה imagecreatefromdir לא יודע מאיפה המצאת אותה...

וגם אחרי זה לא בטוח שזה יעבוד, ראה סעיף ג'.
  Reply With Quote