HomePHP 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.
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.