Single File PHP Gallery

Single File PHP Gallery를 설치 해 보았다.

index.php 파일 하나를 사용하여 웹서버에 있는 사진을 표시해 준다.

현재 버전은 4.1.1

한글 파일 이름이 깨져서 보이는 것 빼고는 DB도 사용하지 않고 간단하게 사용할 수 있다.

 
____________________________________________________________
FEATURES

* Free for private non commercial use
* Very simple Plug’n’Play like ease of use
* Uses no Database
* Automatically creates thumbnails
* Option to create and use intermediate preview images
* Displays EXIF information
* Rotates/corrects orientation of images using EXIF information
* Option to add watermark to all images in gallery
* Supports JPG, JPEG, PNG and GIF
* Unlimited numbers of sub galleries
* See configuration information for all features

____________________________________________________________
REQUIREMENTS

For this gallery to function you will need the following:
* A web server capable of running PHP 5 scripts
* The PHP GD library (php_gd) installed. See here for information: http://php.net/gd
* PHP write access to server
* PHP memory limit large enough to contain both full size image and preview/thumb (converted to BMP) See the FAQ section for further information on this.

____________________________________________________________
HOW TO USE / QUICK START

The only thing you have to do is place a copy of the index.php file to any directory of your web.
When this is done all images (jpg, jpeg, png, gif) and files if enabled, in that directory and all sub directories will be shown in the gallery.

By default the script will try to create a folder called “_sfpg_data” in which thumbnails, previews and information is saved. This can be changed using the DATA_ROOT co

 

자세한 사항은 다은 홈피 참조

http://sye.dk/sfpg/

서버에 설치 된 경로

http://howto.homelinux.com/photos/public/

Chnage maximum file size in PHP

Gallery사용하다 보면 크기가 큰 파일이 업로드가 되지 않는 문제가 있다. 이것은 PHP설정에 Max size값이 설정 되어 있기 때문이다.
이값을 변경하는 방법은 다음과 같다.
$ sudo vi /etc/php5/cli/php.ini

post_max_size = 50M
upload_max_filesize = 12M

설정값 변경후 webserver(apache)를 재시작 한다.
$ sudo /etc/init.d/apache2 restart