A PHP class and templates to create a quick drop-in HTML gallery.
Check that encoding of config.php
file itself matches value of GALLERY_FS_ENCODING constant.
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).
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.