Sponsor
Now Playing
- Alix Perez – I'm Free 2 hours ago
- Alix Perez – Intersections 2 hours ago
- Alix Perez – Forsaken 2 hours ago
- Glen E Ston – Ouroboros (Original Mix) 3 hours ago
- Black Sun Empire – Everything 3 hours ago
Tutorial: How to make an Image Upload and Thumbnailer Script PHP
April 8, 2008,
13,683 views
This tutorial can be extended way further. And i plan on doing it, perhaps even up to the point where it can be a gallery who knows. I just need to gauge the success of this tutorial and the interest i have for future development. This code can so so easily be transformed into an object (which i was going to do) or be dissected into functions.
I know the code above is spaghetti code, but this is an introduction to the wonder world of PHP. I have attempted to teach security, error handling and basic programming concepts. If you want to leave a comment of appreciation please do so, i will keep writing tutorials then. If you want to post your opinion on some lines say so! But if you want to post stuff like “This is crap” your comment won’t even be seen here Emo
Although you will make me laugh!
Feel free to download a heavily commented full working version of the code from:
Source: thumbstutorial.zip
Demo: http://www.jotlab.com/tutorials/thumbtutorial/thumb.php
*Thats right you can host images on my website. But i have edited my code to make the maximum size no greater than 300 pixels*
7 Comments
i don’t whats the problem with this because when i uploaded a gif file…its not animating anymore…why?
hi
i recive this error with every kind of images :
File is not an image! Don’t waste my time!
so whats the problem?
That’s cool. I test it and it really Great!!
i have the same problem as “pouria”,
with FF its ok, but with IE it doesnt accept the imagees..
whats the problem?
can you tell me how i can make a script that will list the uploaded image on a page for other people to use because the page is for site link back images
Either use a database to reference to the files, or write a directory listing script!
Plenty of them out there! My other tutorial shows you how to insert into a database also! Thank you
great work