PHP
  Home arrow PHP arrow Page 3 - 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? 
Google.com  
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 - Easy Image Hoster
    ( Page 3 of 5 )

    Easy Image Hoster approaches image hosting from a no-nonsense perspective. It does nothing more than provide hosting functions and capabilities. The set up procedure takes less than a minute; immediately after, it handles working with images seamlessly. It is an ImageShack look-alike, including the logo.

    It is a totally freeware script. However, at the time of writing, the website of the author was down. Apparently, I found out that since the site isn't reachable, you cannot download EasyImageHoster from the official source anymore. Fortunately, a quick Google search turns up quite a few results. I've found it myself.

    The script per se isn't copyrighted and re-hosting isn't prohibited. With this opportunity, I thought that I'd save you precious time that you'd waste searching for this nifty little application. Therefore, I'm sharing with you the original (unmodified) archive of Easy Image Hoster v1.35. It's the latest version I could get my hands on. Unfortunately, the project died and no further releases and/or updates were done.

    You can get it by clicking on the Download Source button attached below. It's archived in ZIP format. Download and extract its content to a local directory on your hard drive. It's time to modify the configuration PHP files before we upload them on the web space.

    Configuration is very easy. Just edit "config.php" and set your domain, mail, and path of the uploaded files and thumbnails, then specify the maximum file size and the size of the thumbnails. You can also set the name of your "index.php." Replace the <title> bla </title> part, obviously. The same goes for "basic.php." Also, be careful because in some cases, you may be required to replace the following line (number 80) of "basic.php":

    chmod("./" . $path . $imgf,0400);

    Replace it with: chmod("./" . $path . $imgf,0444); This replaces the standard 0400 permissions with 0444, meaning that you will give all kinds of read permissions (owner, group, public) to the hosted images. This is necessary in most cases, but it depends.

    You can host the files and folders to your web space now. Of course, CHMOD 777 is required for the following two folders: /images and /thumbs. Again, this is to make them writeable for everybody herein, including the script. Finally, check out the attached screenshot below-it's a stripped and cropped version of it.

    Just because we can set it up fairly quickly and I've led you through the installation process doesn't mean you should skip the readme! So check it out.



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

       

    PHP ARTICLES

    - Implementing Factory Methods in PHP 5
    - Merging a File Split for FTP Upload using PHP
    - Getting Data from Yahoo Site Explorer Inboun...
    - Method Chaining: Adding More Selecting Metho...
    - How to Split a File During an FTP Upload Usi...
    - Expanding a Custom CodeIgniter Library with ...
    - Using the Yahoo Site Explorer Inbound Links ...
    - Building a CodeIgniter Custom Library with M...
    - Building an E-mini Trading System Using PHP ...
    - Completing the MySQL Class with Method Chain...
    - 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





    © 2003-2009 by Developer Shed. All rights reserved. DS Cluster 1 Hosted by Hostway
    For more Enterprise Application Development news, visit eWeek