Jump to content

Recommended Posts

I'm not asking anyone to code this for me, but I don't know where to start looking.  Any URL's would be appreciated.

 

What I want to do, is have a php page where I can upload an image.  PHP will automatically resize the image, create a thumbnail image AND upload both of those.

 

Then I would want a photo gallery to view the pictures.

 

Can someone just steer me in the right direction?

 

Thanks!

Link to comment
https://forums.phpfreaks.com/topic/196322-help-with-uploading-pictures/
Share on other sites

Have a look at this http://www.w3schools.com/PHP/php_file_upload.asp

 

All the upload process does is get the file into your tmp php folder (usually /tmp/). Then you use move_uploaded_file to literally move the file from the tmp folder to the correct destination. Once this process completes is when I would recommend doing image manipulation on the saved image.

 

http://www.white-hat-web-design.co.uk/articles/php-image-resizing.php

 

I also found an example here http://www.blazonry.com/scripting/upload-size.php

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.