Table of Contents generated with DocToc
- Project: artgallery
This is a very simple Art Gallery application/website written in PHP.
It allows users to show their art (captured as an image).
- A webserver capable of running PHP,
shell_execandexecneed to be enabled forPHPimagicktool installed (for the use ofconverttool),wgetneeds to be availableSQLite3Jquery(included in this release)SweetAlert(incluced in this release). SweetAlert 2 GitHub.
- Checkout or Download the project to your webHost
- Edit the
/appConst.phpfile:- For security reason, make sure to change the default values of
DB_LOCATION,DB_NAME - For security reason, change the admin folder name (Default is
/adminup) - Create an
.htaccessfile in the admin folder rendering said folder accessible to authorized users only Please Read more here
- For security reason, make sure to change the default values of
- Access the file
/adminup/test_run.phpthrough your browser. If everything has been set properly, you will not see any error message. - Make sure to set
DEVglobal constant to false in/appConst.php. You can choose to edit other Global variables.- set
SHOW_RAND_GALLERYtotrueorfalseif you would like a gallery of random items to show. MAX_RAND_GALLERYis the number of random items to be shown whenSHOW_RAND_GALLERYis set to true.GALLERY_ACCESS_CODEset this code to anything if you would like a code to be provided before visitors can see your art.
- set
- Enjoy :). To Add/Edit/Hide/Show/Purge items into/from your gallery, access the admin page
- You might want to Edit the style sheet in
index.phpto customize the Gallery to your liking.
- Light weight
< 1 MB. - Your Gallery can be rearranged by dragging and dropping the uploaded items in any order you want.
- You can pick which items to show and/or hide.
- You can make your gallery accessible only to visitors with a particular token.
- Navigate Gallery with
RightandLeftkeyboard keys.
Screenshot (no item in gallery)
Mobile version screenshot
Admin Screenshot
A: This happens because you might have not set up your .htaccess file properly. Make sure the .htaccess has the full path to the .htpasswd file as in: AuthUserFile /full/file/path/.htpasswd`
A: DEV constant in appConst.php is probably set to true. Set that value to false.
A: Make sure of the followings
apachehas write access to the imgs folder- the file size in
php.iniis not too small


