אשמח מאוד אם תעזרו לי- או לפחות תגידו לי באיזה פוקצייה להשתמש - אני אנסה.
<?php $dirname = "yourdirname"; if ($handle = opendir($dirname)) { while (false !== ($file = readdir($handle))) { // $file - שם הקובץ } closedir($handle); }?>
<?phpif ($handle = opendir('pic')) { while (false !== ($file = readdir($handle))) { if ($file != "." && $file != "..") { echo "$file\n"; } } closedir($handle);}?>
הנה מה שאני עשיתי : $y=1;foreach (glob("$DIRNAME/*.jpg") as $images){ echo "<img src='$imaged'></img>";$y++;}בהצלחה
$y=1;foreach (glob("$DIRNAME/*.jpg") as $images){ echo "<img src='$imaged'></img>";$y++;}בהצלחה
$y=1;foreach (glob("$DIRNAME/*.jpg") as $images){ echo "<img src='$imaged'></img>";$y++;}
בהצלחה
מה שכן !!!יש לעשות דאבל כי זה JPG (בגדול) ו jpg (בקטן)
או לוודא שהכל בקטן.. או הכל בגדול
$pattern = sql_case("path/*.jpg");foreach (glob($pattern) as $file){...}
ואז זה לא יבדיל בין אותיות קטנות לגדולות ;)