Installing PHP Image Gallery
PHP Image Gallery is 100% HTML and JavaScript code on the client, and PHP code on the server, and can be setup on your web server in just 5 minutes,
simply by following this setup guide.
1. Deploying gallery Client files.
The "phpgallery" folder and all file it contains (located in the archive) should be deployed to http://{your site}/{your application}/phpgallery/ on your web site.
2. Create Uploader object.
- <?php require_once "phpgallery/include_phpgallery.php" ?>
- <?php
-
-
- $gallery=new PhpGallery();
-
- $gallery->GalleryFolder="defaultalbum";
- $gallery->AllowEdit=true;
- $gallery->AllowPostComment=true;
- $gallery->AllowShowComment=true;
-
-
- $gallery->LogonUserID="username@server.com";
- $gallery->LogonUserName="UserName";
-
- $gallery->Layout="Classic";
- $gallery->Editor="Explorer";
- $gallery->Slider="NewWin";
- $gallery->Viewer="LightBox";
- $gallery->Popup="Default";
- $gallery->Theme="Classic";
-
-
- $gallery->ProcessAjaxPostback();
-
- ?>
3. Adding gallery into page.
- <?php
- $gallery->Render();
- ?>
4. Adding Admin Console and Slide Show button into page.
- <a href="#" onclick="thegallerybrowser.ShowEditor();return false;">Admin Console</a> |
- <a href="#" onclick="thegallerybrowser.ShowSlider();return false;">Start slide show</a>