Page 1 of 1

Photo gallery - source syntax?

Posted: Tue Dec 12, 2023 1:33 pm
by alan_sh
I have a photo gallery and I would like the source to be a folder on my host's server. What is the syntax I need to use to get the pictures to display?

I have some pictures in a folder on my server. I can access an individual one by typing this in a browser - https://the-photo.org/trevor/01-62230019.JPG

The folder itself (trevor) has permission of 755. But when I put in https://the-photo.org/trevor - nothing happens.

Thanks for any advice

Alan

Re: Photo gallery - source syntax?

Posted: Tue Dec 12, 2023 1:46 pm
by alan_sh
A sample wbs file can be found here https://www.dropbox.com/scl/fi/dhg44i8a ... 4u89r&dl=0

Re: Photo gallery - source syntax?

Posted: Tue Dec 12, 2023 2:40 pm
by Pablo
The 'Folder' should be the name of a relative folder, not an URL.

https://the-photo.org/trevor
should be
trevor


Also, the page extension (in Page Properties) must be php, otherwise the server does not execute the PHP script.

Re: Photo gallery - source syntax?

Posted: Tue Dec 12, 2023 3:15 pm
by alan_sh
Thanks. I will try that out.

Alan

Re: Photo gallery - source syntax?

Posted: Tue Dec 12, 2023 3:32 pm
by alan_sh
Thank you - that works perfectly.

Alan