Skip to content

PHP Images Server for imager gem. Includes resizing and albums.

Notifications You must be signed in to change notification settings

julia-otran/ImagerServer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Imager Server API

Use with Imager gem

Setup: Random one token(key) for you and place at manager/auth.php

$YOUR_AUTH_CODE = '';

Set this other two vars in manager/initializer: Your app root. If you place the manager folder in /home/youruser/public_html/somesubdomainfolder/manager you should set as:

$GLOBALS['APP_ROOT']   = '/home/youruser/public_html/somesubdomainfolder/';

Or Windows:

$GLOBALS['APP_ROOT']   = 'C:/Users/youruser/public_html/somesubdomainfolder/';

And this is where the images will be saved. If you want save at /home/youruser/public_html/somesubdomainfolder/images set like:

$GLOBALS['IMAGES_DIR'] = 'images/';

Don't forget the '/' at the end.

For save at /home/youruser/public_html/somesubdomainfolder/ leave blank

$GLOBALS['IMAGES_DIR'] = '';

Set permissions of images or somesubdomainfolder. Remember to not set 0777 the manager folder.

The folder tests contain html forms for checking if everything is ok. Just access it from your server. The folder must be at same root of manager.

About

PHP Images Server for imager gem. Includes resizing and albums.

Resources

Stars

Watchers

Forks

Packages

No packages published