anrdaemon/mylittlegallery
Composer 安装命令:
composer require anrdaemon/mylittlegallery
包简介
My Little Gallery, a PHP class and templates to create a quick drop-in HTML gallery.
README 文档
README
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.
统计信息
- 总下载量: 29
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: WTFPL
- 更新时间: 2017-06-17