אשכול: שאלה ב PHP
View Single Post
ישן 09-06-07, 19:48   # 2
X-T
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jan 2007
הודעות: 1,021

X-T לא מחובר  

שגיאה בקוד הבא:
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);
            
$logofileimagecreatefromdir($logofiles);  
            
imagecopymerge ($image$logofile, ($wsh-$w), ($hw-$h), 00$w$h,100);
            
imagegif ($image,$wh);
        }
        
closedir($dh);
    }

השגיאה:
ציטוט:
Warning: getimagesize() [function.getimagesize]: Read error!
Fatal error: Call to undefined function: imagecreatefromdir()
__________________
You don't shine if you don't glow
  Reply With Quote