I have done a uploading script, but I want to do, so when I upload an image the image should be stored in 3 different sizes. That means 3 different pictures. What is the easiest way to do that? Here is my upload-script:
with imagecopyresampled() you can do that quite easily. And in your code, please check the file for mimetype and extention! :)
...or imagecopyresized incase he doesn't want it to change the pixels.
"The reasonable man adapts himself to the conditions that surround him... The unreasonable man adapts surrounding conditions to himself... All progress depends on the unreasonable man." - George Bernard Shaw
I have used this in the past, should be easy for you to modify, it takes into account image orientation (i.e. landscape/portrait) and scales accoringly. It olny accepts jpegs atm but like i say you its easy to customize it with the correct image format function. the php manual is useful here: