PHP
  Home arrow PHP arrow Page 2 - Setting Up a Web-Based Image Gallery
Dev Shed Forums  
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Smartphone Development  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Mobile Linux  
App Generation ROI  
IBM® developerWorks  
Forums Sitemap  
E-Commerce Hosting  
Linux Web Hosting  
Managed Hosting  
Small Business Hosting  
VPS Hosting  
Weekly Newsletter

 
Developer Updates  
Free Website Content 
 RSS  Articles
 RSS  Forums
 RSS  All Feeds
Write For Us Get Paid  
Request Media Kit
Contact Us  
Site Map  
Privacy Policy  
Support  
 USERNAME
 
 PASSWORD
 
 
  >>> SIGN UP!  
  Lost Password? 
PHP

Setting Up a Web-Based Image Gallery
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 9
    2008-05-06


    Table of Contents:
  • Setting Up a Web-Based Image Gallery
  • 4images Gallery
  • Coppermine Gallery
  • Concluding Thoughts

  • Rate this Article: Poor Best 
      ADD THIS ARTICLE TO:
      error-file:tidyout.log Del.ici.ous error-file:tidyout.log Digg
      error-file:tidyout.log Blink error-file:tidyout.log Simpy
      error-file:tidyout.log Google error-file:tidyout.log Spurl
      error-file:tidyout.log Y! MyWeb error-file:tidyout.log Furl
    Email Me Similar Content When Posted
    Add Developer Shed Article Feed To Your Site
    Email Article To Friend
    Print Version Of Article
    PDF Version Of Article

     
     
    ADVERTISEMENT


    Setting Up a Web-Based Image Gallery - 4images Gallery
    ( Page 2 of 4 )

    4images Gallery is a web-based image gallery management system. It's based on PHP and MySQL. It has an extensive list of features and runs smoothly and efficiently without requiring much user interaction during the installation process. It has a really intuitive and straightforward graphical user interface and that's why most prefer it.

    Let's enumerate some of its key features: user registration, management (users, images, etc.), comment system, administration via password(s), spam control (captcha), lots of templates and design "skins," and you can edit the original template to fit into your web site using the incorporated HTML editor. Multi-language support isn't overlooked either; German and English are possible as far as I know.

    An additional RSS feed broadcasting feature is also incorporated. Thanks to this RSS capability, you can be notified of the latest comments, images added to particular categories, and so forth. You can schedule a backup process for the database.

    Finally, it sports an extensive list of image-based functions and features, such as uploading images via web browser, automatic resize, rating by users, comments, download counter, download as an archive (more images), customizable e-cards, tagging system for each image (keywords, etc.), thumbnail generation, and protection against hot-linking. The latter is crucial to taking care of your own bandwidth.

    That covers its capabilities. Now the time has come for us to actually download its archive and find out how we can set it up. Head over to the 4images Gallery official site. Now move to the Download section. At the time of writing, the latest version was 1.7.6 and it is accompanied by a really impressive download count: 529,798. And I bet at least 70% of those downloads are working copies spread over the World Wide Web!

    After you have extracted the archive, please find the /docs/ folder, inside of which you should search for the "Installation.english.txt" plain text file. Read the documentation carefully, even though I'll do my best to explain this short process as briefly and clearly as possible. You should never ignore the useful habit of reading "read me" files.

    Host the whole extracted archive to a particular folder on your web space -- let's assume the following: mysite.com/4images. Fire up your web browser and target this location. A new page will open where you need to fill in the required fields. Right after, you can begin the installation by clicking on the Start Installation button.

    (Fully functional 4images gallery-Image Courtesy of 4images Gallery)

    It's important that the installer script handles the management of your MySQL database. Assuming you have given the correct information (passwords, etc.), it should set up the necessary tables in the database you have specified. Finishing this step, the script automatically generates and tries to upload the config.php file.

    If writing permissions aren't given to that specific directory, then you will have the ability to download the config.php and host it, manually overwriting the default one. This is important because it's going to contain your very own configuration settings. After this point, we can consider the installation process to be done.

    However, a few things are still left to do. You need to set the necessary permissions to the following folders. The permissions are: drwxrwxrw, meaning 777. This is required in order to have full read, write, and execute permissions. It makes sense, right? The 4images web app should read, write, and execute the PHP scripts from those folders.

    chmod 777 (drwxrwxrwx) : data

    chmod 777 (drwxrwxrwx) : data/database

    chmod 777 (drwxrwxrwx) : data/media

    chmod 777 (drwxrwxrwx) : data/thumbnails

    chmod 777 (drwxrwxrwx) : data/tmp_media

    chmod 777 (drwxrwxrwx) : data/tmp_thumbnails

    chmod 777 (drwxrwxrwx) : templates

    chmod 777 (drwxrwxrwx) : templates/default

    chmod 777 (drwxrwxrwx) : templates/default/media

    As well as for the following files (666 since no execution is required):

    chmod 666 (-rw-rw-rw-) : all files in the directory "templates/default"

    chmod 666 (-rw-rw-rw-) : all files in the directory "templates/default/media"

    That's all, the setup is complete. Still, you shouldn't forget to delete install.php and all variations of update_*.php files, or at least rename them or move them to a backup folder. Otherwise, each time you visit your 4images' link, the installation screen will still pop up. I'd also recommend enabling the Caching System, but for this please refer to the Cache.english.txt located in the /docs/ directory. Its topic is beyond the scope of this article.

    As a final note, now that your 4images Gallery is working, you should visit the Control Panel to configure your gallery management system the way you want!



     
     
    >>> More PHP Articles          >>> More By Barzan "Tony" Antal
     

       

    PHP ARTICLES

    - Building Dynamic Queries with Chainable Meth...
    - PHP Encryption and Decryption Methods
    - Building a MySQL Abstraction Class with Meth...
    - Completing a Sample String Processor with Me...
    - Mastering WHILE Loops for PHP and MySQL
    - Method Chaining: Adding More Methods to the ...
    - Method Chaining in PHP 5
    - The Role of Interfaces in Applying the Depen...
    - Dependency Injection: Using a Setter Method ...
    - Using a Model Class with the Dependency Inje...
    - Injecting Objects Using Setter Methods with ...
    - Injecting Objects by Constructor with the De...
    - The Dependency Injection Design Pattern in P...
    - Performing Inferential Statistical Analysis ...
    - Performing Descriptive Statistical Analysis ...





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 4 Hosted by Hostway
    Stay green...Green IT