PHP
  Home arrow PHP arrow Page 2 - Setting Up a Web-based Image Hosting Service
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 Hosting Service
By: Barzan "Tony" Antal
  • Search For More Articles!
  • Disclaimer
  • Author Terms
  • Rating: starstarstarstarstar / 3
    2008-05-13


    Table of Contents:
  • Setting Up a Web-based Image Hosting Service
  • GM Photo Host
  • Easy Image Hoster
  • DXL dev' IHS
  • Final 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 Hosting Service - GM Photo Host
    ( Page 2 of 5 )

    This is a simple yet feature-laden photo hosting service. It doesn't require MySQL, thus, user registration isn't supported. It sports a user gallery. This is the place where the thumbnails of the hosted images are listed.

    You can download it from here; click on the "download" button. As you can see from the above screenshot, its UI is quite minimal, although I cropped the rest of the page. It comes with a pre-written Terms of Service [TOS] and also has reserved space for advertisements (AdSense and others) and banners of partner sites. The tools page allows other people to set up your image hosting service on their site.

    Now let's talk for a few seconds on how to set it up. Download the archive and extract its content to a folder on your hard drive for now. Here comes the part that you might dislike, but we cannot stress it enough: thou shalt always read the documentation and/or manual that accompanies any product-let it be software, hardware, or consumer electronics. In this case, it's called "README.txt". Please don't ignore it.

    You are required to do a few edits on various PHP configuration files. It's advisable to replace the title of the page in the "header.php" file (<TITLE>Best Site Ever etc</TITLE>) and also change the information on lines 38 and 39 regarding the recommendation mail (its content) that any user may send through your site (Tell a Friend). In "contact.php," you should replace the link of your form-to-mail page (this is for feedback) on line 34.

    Moving on, you can configure the attributes of your gallery in "gallery_php.php." Also, on line 32 of "galleryImage.tpt" you need to add the link to your website. This is important! The same goes for the following three index pages: "index.php", "index2.php", "index3.php", but also the "tools.php." Replace all occurrences of "yoururl.com" with your exact URL (e.g. best-site-ever.com).

    Ultimately, you should replace the name of your site in "iframe.php" on line 18. You need to search for the text that appears related to "powered by bla bla." That's where you ought to add what your site is called. That's all. You are ready to host the whole bunch of files and folders on your web space.

    Finally, let's apply the necessary permissions. Modify CMOD /images/ and /images/thumbs to 0777 (or just 777), which is basically drwxrwxrwx. This is the way it's stated in readme, but you don't really need execution for the storage directory of the hosted images.

    By now your GM Photo Host should be up and running. Just target your browser to "index.php" of the folder where you host everything. Also, you can create a fancy button that brings up that page; it's all up to you.



     
     
    >>> 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 5 Hosted by Hostway
    Stay green...Green IT