Image Hosting site
From a Last few weeks I am searching for a good tutorial on a image upload script.the tutorial must be in a good language or in other words simple.I found some tutorial on the net but the only problem was that they don't have any linking like those with a label direct URL,forum code,HTML code, and all.so d0 you know any tutorials
kazimmerman posted this at 11:57 — 19th January 2009.
He has: 698 posts
Joined: Jul 2005
Many of these tutorials show methods for uploading images, but if I understand you, you need help with the displaying of images and possible "sharing" code. For this, consider checking out some gallery scripts, especially those from HotScripts.
If you can't seem to find a script that does exactly what you want, these are some sample ideas of what you want:
Direct URL: http://www.yourwebsite.com/path/to/image.jpg
Forum Code: [img]http://www.yourwebsite.com/path/to/image.jpg[/img]
HTML Code: <img src="http://www.yourwebsite.com/path/to/image.jpg" alt="Image Description" />
If you find a script that you can implement and need help adding this function to them, come back to us and we can help you out with something more specific.
Kurtis
HiddenWebMaster posted this at 12:32 — 19th January 2009.
He has: 4 posts
Joined: Jan 2009
Well that will work but not with all.Every visitor would upload a different picture and i want the code to change accordingly.
eg.
Visitor one uploads: button.jpg
while
Visitor two uploads: water.gif
so i want the codes to be like this
Direct Url
http://mysite.com/uploads/button.jpg
For visitor one
And
http://mysite.com/uploads/water.gif
For visitor two
greg posted this at 13:14 — 19th January 2009.
He has: 1,581 posts
Joined: Nov 2005
You would want to provide at least what kazimmerman suggested, "direct Link" "forum code" and "HTML code"
usually the forum code gives variants, like for phpbb, other forums etc
And each member would have their own key/folder etc
mysite.com/username/water.gif
Or an easier method is generate a random key for the users folders and reference..
mysite.com/kjd7fnndkfm45f/water.gif
I have been involved in an popular Imagehost in the past, and have to say, if it becomes very popular it will eat your server resources like you have never seen before (mainly from multiple connections to MYSQL).
We ended up getting a large server cluster just to cope with demand.
Make sure you get decent revenue somehow as it can turn into a costly site to provide and maintain.
As for scripts, there are loads out there. Have a good search for "imagehost scripts" and find out what each one offers to best suit your needs.
We coded a lot ourselves to get the functions and security we needed, but there are good ones already out there.
Some also now come already with server cluster features built into them.
HiddenWebMaster posted this at 16:45 — 19th January 2009.
He has: 4 posts
Joined: Jan 2009
Well I found the perfect script i want.I thought it would cost high after looking at the screen-shot but it was all free!
well as you said "greg"
This new script only allows 1 MB size.And if the images are not accesed in more then five weeks a e-mail will be sent to the owner informing that he must update or view the picture.If there are no actions in five days the image is removed from my server.
greg posted this at 19:28 — 19th January 2009.
He has: 1,581 posts
Joined: Nov 2005
Those options should be configurable in some sort of admin control panel I would guess, if not it would be easy enough to change them to suit.
The removal of inactive images is a good idea. Saves HD and importantly mysql space.
The DB can soon get cluttered with thousands of files getting referenced in there.
Just make sure it has good security - important.
I know security is important with all sites, but allowing users to upload files can be dangerous.
There are plenty of ways around the basic checks and there are many known exploits for imagehosts. I don't want to scare, but just make sure it's secure.
Methods such as hacking the mime type of the file to include php script but be disguised as a genuine img file.
Upload goes through and user has a script to run on the server.
Keep us up to date with your progress! And of course post if you get stuck!
Want to join the discussion? Create an account or log in if you already have one. Joining is fast, free and painless! We’ll even whisk you back here when you’ve finished.