PHP
  Home arrow PHP arrow Page 2 - Setting Up a Web-based Image Hosting S...
Dev Shed Forums 
Administration  
AJAX  
Apache  
BrainDump  
DHTML  
Flash  
Java  
JavaScript  
Multimedia  
MySQL  
Oracle  
Perl  
PHP  
Practices  
Python  
Reviews  
Security  
Style-Sheets  
Web Services  
XML  
Zend  
Zope  
Forums Sitemap 
IBM® developerWorks 
Sun Developer Network 
Dedicated Servers 
E-Commerce Hosting 
Linux Web Hosting 
Managed Hosting 
Small Business Hosting 
Moblin 
JMSL Numerical Library 
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: 5 stars5 stars5 stars5 stars5 stars / 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:
      Del.ici.ous Digg
      Blink Simpy
      Google Spurl
      Y! MyWeb 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


       · Thanks for reading this article about setting up a web-based image hosting service....
       · Tony:Is there an image hosting script that is better than others in terms of...
     

       

    PHP ARTICLES

    - Validating Web Forms with the Code Igniter P...
    - Output Buffering
    - Paginating Database Records with the Code Ig...
    - HTTP Headers in Web Development
    - Project Management: Administration
    - Building a Database-Driven Application with ...
    - User Authentication for a Project Management...
    - Introduction to the CodeIgniter PHP Framework
    - Adding Users for a Project Management Applic...
    - Migrating Class Code for a MIME Email to PHP...
    - Login and Logout Authentication for a Projec...
    - Composing Messages in HTML for MIME Email wi...
    - Project Management: Authentication
    - A Better Way to Determine MIME Types for MIM...
    - Project Management Overview





    © 2003-2008 by Developer Shed. All rights reserved. DS Cluster 6 hosted by Hostway