Simple photogallery based on PHP
I needed for some of my project web gallery which is automatically generated from directory structure with photos. Therefore I created simle photogallery based on PHP.
- support for mobile devices - photogallery looks nice on mobile devices since for displaying images is used Photoswipe
- support for discussions - one discussion is present in photogallery and each photoalbum in photogallery has again its own discussion. Discussion is order from the newest commentary to the oldest commentary.
- support for Google Analytics - you just enter your script into
google_analytics.txt
and subsequently it is generated into all photogallery web pages which user can see
In one private folder (which is not directly exposed to the Internet) you just needs to configure photogallery (enter some information, password, upload photos) and into another folder, which is directly exposed to the Internet, you upload PHP source codes of photogallery.
My webhosting provider supports some location for private files (not exposed to the Internet) and some location (in my case folder sub
for subdomains) which is exposed to the Internet:
-
files
- folder with private filesphotogallery-on-php
- name of my subdomain/photogallerysome-album-1
photo
- large photos which will be displayedthumb
- small thumbs of each photodiscussion.txt
- file contains discussion for photoalbuminfo_album.ini
- information about photoalbuminfo_photos.csv
- information about single files
some-album-2
discussion.txt
- file contains discussion for photogallerygoogle_analytics.txt
- Google Analytics scriptinfo_gallery.ini
- information about photogallery and its configurationpassword.txt
- password for access to the photogallery
-
sub
- folder with subdomain exposed to the Internetphotogallery-on-php
- name of my subdomain/photogallery- subdomain contains all photogallery-on-php source codes. You can just copy it there.
If you do not wish to use files
or sub
directory, you have to change the paths in each php file separately. When #16 will be fixed/done, paths will be centralized and any modification will be much simpler.
Run git clone git@github.com:antonbalucha/photogallery-on-php
command from your console, which supports GIT (e.g. https://git-scm.com/downloads)
You can find live demo on https://photogallery-on-php.tonyb.technology. Password for access is Test1
I provide this project under Apache License 2.0.
In case of any questions about the Photogallery On PHP or suggestions for improvements or some feedback or whatever is in your mind about the Photogallery On PHP you may contact me on projects@tonyb.technology
.
PHP, Photogallery On PHP, automatically generated photogallery, simple photogallery