|This forum is proudly powered by Scientific Linux 6||SL website Download SL Help Search Members|
|Welcome Guest ( Log In | Register )||Resend Validation Email|
Posted: May 25 2011, 05:56 PM
Member No.: 2
Joined: 8-April 11
If you want to use images on the internet, for example when posting on this forum, you will need to have webspace. Many people use the free services from websites such as ImageBam, ImageShack, Photobucket or Dropbox. They offer a free hosting with a specific limit per month.
Although they do offer great services, they do limit your freedom and sometimes your privacy.
By uploading an image, you do not control it anymore since you do not control the server it is on.
Is the server down, you can't access your file (this goes for all except when you host it yourself).
If you lose the "remove-link" than you cannot remove the image. Privacy is lost when the hoster decides to sell your photo (without your concent except when you agreed to the EULA which nobody reads).
So, what can you do about it? If you have a server or webspace you can use, create your own imagehosting. It is not so difficult to set up and requires little resources.
What do you need?
1. Webspace (your own domain or webspace from your Internet provider)
2. The server allows you to run PHP scripts.
3. A directory which has been given r/w access to all (chmod 777).
4. Two files including an upload script (keep on reading).
How to set this up?
It is nothing more than two files you need to put somewhere on your website: index.html and upload.php.
Configuration is done within upload.php and should explain itself.
For optimal results, create two directories: http://server/directory1 and http://server/directory2
Put the two files in directory1 and configure upload.php that the target is directory2.
This way people will see the target directory but they do not know what directory1 is (the directory where the upload script is).
Remember that if people do know where to upload, they can use your monthly traffic by putting their files on your server (and you wouldn't know unless you check the "storage" directory with a FTP program).
This is a simple setup that works. It does check if the file you want to upload is a valid (configured) image file based on extension (so not 100% failsafe). It isn't protected so seperate the upload script and the uploaded files. It does rename the file to something unique so no chance upload will fail because there is already a file with the same name. And it renames extensions in uppercase to lowercase. And it is free and if you like it you can mod it as much as you like
What is SL? - Forum Rules - Info on 3rd Party Repos - How to post images - How to post large text / config files
Desktop: ASUS P5QPL-AM, Intel Dual-Core E6500, 4GB DDR2, ASUS GeForce GT 430 1GB, SL6.4 x86_64
Laptop: ASUS X58L, Intel Dual-Core T3200, 3GB DDR2, Intel GMA X3100, RHEL6.4 x86_64
Test box: Intel S5000PSL, 2x Intel Xeon E5310, 8GB ECC DDR2 FB-DIMM, ASUS GeForce GT 220 1GB, Fedora 19 X86_64
Posted: Sep 17 2011, 02:41 PM
Member No.: 813
Joined: 8-September 11
Thanks for the wonderful post