videos 15 - 17: Gallery populated using Opendir, Readdir, Closedir

stage1:

opendir, readdir used to get all file names into main div. The first crude step.

illust04_greenCity.jpg
.
digImg04_morphed.jpg
illust04_medical.jpg
digImg05_morphed02.jpg
illust10_hairPick.jpg
art01_xenaWarrior.jpg
illust12_silohetts.jpg
digImg06_multimedia.jpg
illust13_auto.jpg
illust03_auto.jpg
art02_goldenWings.jpg
illust02_trucks.jpg
digImg02_stoneMeditation.jpg
illust08_flyerRed.jpg
illust11_space.jpg
art03_apesCook.jpg
illust01.jpg
digImg03_str_ldy.jpg
..
digImg01_redSquareface.jpg
illust09_screams.jpg

 

video 16: fnmatch

stage2:

fnmatch is used to ensure we only loop out relevant files: in this case, only image jpegs.

illust04_greenCity.jpg
digImg04_morphed.jpg
illust04_medical.jpg
digImg05_morphed02.jpg
illust10_hairPick.jpg
art01_xenaWarrior.jpg
illust12_silohetts.jpg
digImg06_multimedia.jpg
illust13_auto.jpg
illust03_auto.jpg
art02_goldenWings.jpg
illust02_trucks.jpg
digImg02_stoneMeditation.jpg
illust08_flyerRed.jpg
illust11_space.jpg
art03_apesCook.jpg
illust01.jpg
digImg03_str_ldy.jpg
digImg01_redSquareface.jpg
illust09_screams.jpg

 

video 17: Looping out actual Divs 'n Images using fnmatch and Layered PHP

stage3:

A second level of PHP is used to cut 'div class="galleryThumb" ' code including image path into the inside Conditional.


 

stage4:

A third level of PHP is woven in, cutting into the end of the 'img src' code with the file variable, to loop out all relevant images in the folder.


 

I'll redo this to drill it.

An SBC outage and their obfuscation of it has cost me 2 days, so I'd better run through this again.


 

One more time.