Home arrow PHP arrow Page 4 - Setting Up a Web-based Image Hosting Service

DXL dev' IHS - PHP

Image hosting services are pretty popular in today’s overly animated and graphical World Wide Web. Almost on a day-to-day basis, we face situations where we need to host images in order to post them on a forum or share them with friends. In this article, we will discuss how to set up your own image hosting service on your web server, a la ImageShack. We will cover only freeware solutions.

TABLE OF CONTENTS:
  1. Setting Up a Web-based Image Hosting Service
  2. GM Photo Host
  3. Easy Image Hoster
  4. DXL dev' IHS
  5. Final Thoughts
By: Barzan "Tony" Antal
Rating: starstarstarstarstar / 3
May 13, 2008

print this article
SEARCH DEV SHED

TOOLS YOU CAN USE

advertisement

This is going to be the third solution presented in this article. It is also freeware and offers a minimalist, yet effective approach toward image sharing and hosting. It is a quick script that can be customized to fit the necessities of your website. Its outfit can be tailored using CSS, just as with the previous hosting applications.

You can download it from DXL dev's home page: here. Pick "Image Hosting Script."

Download the archive, extract its content, and let the modification process begin. We need to fine-tune everything so that it meets our expectations. Start by editing the "config.php." This is where you can specify the title of your site, the directory where images are going to be hosted, maximum file size and accepted file formats, as well as your AdSense ID.

Then comes the design part. I advise you to edit the "index.php" and "style.css" files in order to optimize and design their aesthetics to fit into your web site's template. While you are doing this, don't forget to replace the <title> </title> part of the main page. This grabs the $title variable from "config.php."

In a nutshell, that's all you need to do. Host everything on your virtual space on the World Wide Web. Set the necessary permissions (0777) on the /pics folder. If you've read the article and paid attention until now, then you know why.

The archive also includes the "manual.pdf" in PDF format. You should read it.



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

blog comments powered by Disqus
escort Bursa Bursa escort Antalya eskort
   

PHP ARTICLES

- Hackers Compromise PHP Sites to Launch Attac...
- Red Hat, Zend Form OpenShift PaaS Alliance
- PHP IDE News
- BCD, Zend Extend PHP Partnership
- PHP FAQ Highlight
- PHP Creator Didn't Set Out to Create a Langu...
- PHP Trends Revealed in Zend Study
- PHP: Best Methods for Running Scheduled Jobs
- PHP Array Functions: array_change_key_case
- PHP array_combine Function
- PHP array_chunk Function
- PHP Closures as View Helpers: Lazy-Loading F...
- Using PHP Closures as View Helpers
- PHP File and Operating System Program Execut...
- PHP: Effects of Wrapping Code in Class Const...

Developer Shed Affiliates

 


Dev Shed Tutorial Topics: