I have the following code to get the list of images from a directory. Then I will display them I manage to get them, but when I try to display I only see the first one:
Code:
array($timg);
$JCOUNT=0;
$JTOT = 0;
$tts = $dirname."/{*.jpg}";
foreach(glob($tts,GLOB_BRACE) as $tt){
$JCOUNT=$JCOUNT+1; print_r2("JCOUNT = $JCOUNT");
$timg[$JCOUNT] = $tt; print_r2("timg = $timg[$JCOUNT]");
$JTOT++; print_r2("JTOT = $JTOT");};
Comment