הרשם שאלות ותשובות רשימת חברים לוח שנה הודעות מהיום

חזור   הוסטס - פורום אחסון האתרים הגדול בישראל > עיצוב גראפי, תכנות על כל שפותיו וקידום ושיווק אתרים > פורום תיכנות

   
|!|

השב
 
כלים לאשכול תצורת הצגה
ישן 09-06-07, 19:36   # 1
BlueNosE
אין כמו ב127.0.0.1
 
BlueNosE's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
מיקום: כפ"ס
גיל: 32
הודעות: 4,086

BlueNosE לא מחובר  

פועל בכל שרת:
glob
וזה גם ניתן לבחירה יותר ממוקדת. זאת לולאה אוטומטית.
__________________
עומר,
admin [@] rely.co.il

בניית אתרים Rely

סלנג מילון סלנג utter
  Reply With Quote
ישן 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
ישן 09-06-07, 20:02   # 3
meshuga
הנהלת הפורום לשעבר
 
meshuga's Avatar
 
מיני פרופיל
תאריך הצטרפות: Oct 2005
גיל: 35
הודעות: 7,601

meshuga לא מחובר  

ציטוט:
נכתב במקור על ידי 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);
    }

השגיאה:
שמע הקוד שלך ממש מלא שגיאות..
א. אין כזאת פונקציה imagecreatefromdir לא יודע מאיפה המצאת אותה...
ב. בתוך הלולאה, הקובץ שלך הוא $file ולא $wh, $wh זה הנתיב לתקייה של התמונות..
ג. אף פעם לא ניסיתי, אבל אני כמעט בטוח, אתה לא יכול להדפיס מספר תמונות באותו דף..
ד. למה עשית את המשתנה $dir
  Reply With Quote
ישן 09-06-07, 20:07   # 4
X-T
חבר וותיק
 
מיני פרופיל
תאריך הצטרפות: Jan 2007
הודעות: 1,021

X-T לא מחובר  

ציטוט:
נכתב במקור על ידי meshuga צפה בהודעה
שמע הקוד שלך ממש מלא שגיאות..
א. אין כזאת פונקציה imagecreatefromdir לא יודע מאיפה המצאת אותה...
ב. בתוך הלולאה, הקובץ שלך הוא $file ולא $wh, $wh זה הנתיב לתקייה של התמונות..
ג. אף פעם לא ניסיתי, אבל אני כמעט בטוח, אתה לא יכול להדפיס מספר תמונות באותו דף..
ד. למה עשית את המשתנה $dir
קצת תיקונים בהקשר למה שאמרת
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...
__________________
You don't shine if you don't glow
  Reply With Quote
ישן 09-06-07, 20:10   # 5
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
השב

חברים פעילים הצופים באשכול זה: 1 (0 חברים ו- 1 אורחים)
 


חוקי פירסום
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is מופעל
סמיילים הם מופעל
[IMG] קוד מופעל
קוד HTML מכובה

קפיצה לפורום


כל הזמנים הם GMT +2. הזמן כעת הוא 18:18.

מופעל באמצעות VBulletin גרסה 3.8.6
כל הזכויות שמורות ©
כל הזכויות שמורות לסולל יבוא ורשתות (1997) בע"מ