Skip to content

Latest commit

 

History

History
25 lines (18 loc) · 1.09 KB

README.md

File metadata and controls

25 lines (18 loc) · 1.09 KB

MyLittleGallery

A PHP class and templates to create a quick drop-in HTML gallery.

Throubleshooting the demo script

Unable to read files with non-ASCII names

PHP before 7.1

Check that encoding of config.php file itself matches value of GALLERY_FS_ENCODING constant.

PHP 7.1+

config.php MUST be in UTF-8. For PHP 7.1 and up GALLERY_FS_ENCODING and $fsEncoding parameter of the constructor are ignored.

Starting from PHP 7.1, PHP uses internal_encoding to transcode file names. Before that, file IO under Windows (notably) done using "default" (so-called "ANSI") character set (i.e. CP1251 for Russian cyrillic).

Compiling single file archive

pharcommand.phar pack -f mlg.phar -s stub.php -c bzip2 index.php Gallery.php

Afterwards, the resulting mlg.phar can be used as index.php in your web gallery directory. You may want to place config.php next to it to configure the gallery. By default, it will list all recognized image files in current directory using UTF-8 encoding.