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.

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

 

video 16: fnmatch

stage2:

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

digImg04_morphed.jpg
digImg05_morphed02.jpg
illust08_flyerRed.jpg
digImg01_redSquareface.jpg
illust10_hairPick.jpg
digImg03_str_ldy.jpg
illust02_trucks.jpg
illust11_space.jpg
illust13_auto.jpg
illust01.jpg
illust04_greenCity.jpg
illust12_silohetts.jpg
digImg02_stoneMeditation.jpg
illust03_auto.jpg
illust09_screams.jpg
digImg06_multimedia.jpg
illust04_medical.jpg
art02_goldenWings.jpg
art01_xenaWarrior.jpg
art03_apesCook.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.