Tutorial: How to make an Image Upload and Thumbnailer Script with cURL

Pages: 1 2 3 4

So you have completed the file upload tutorial. The tutorial has taught you how to upload an image using a form, and then it auto makes a thumbnail and shows it to you, nice. Now lets say you are on a public computer, and can't save to the desktop or whatever. So you would like to upload a photo that is already on the internet, but thumbnail it to your webserver. We need to be able to allow our users the ability to submit a link to an image and work from there.

Take a look at the demo before jumping in:
Demo Here

What you will need is a decent webserver, PHP with cURL enabled (check in your phpinfo();) and time. Please note that within php you are unable to test for MIME types unless you brute force them, which is beyond the scope of this tutorial. You can however add extensions to PHP to enable access to the mime types of stored files on the server, please take a look here for more information. But for this tutorial we will examine the file extensions in the url and go from there.

So you have completed the file upload tutorial. The tutorial has taught you how to upload an image using a form, and then it auto makes a thumbnail and shows it to you, nice. Now lets say you are on a public computer, and can't save to the desktop or whatever. So you would like to upload a photo that is already on the internet, but thumbnail it to your webserver. We need to be able to allow our users the ability to submit a link to an image and work from there.

Take a look at the demo before jumping in:
Demo Here

What you will need is a decent webserver, PHP with cURL enabled (check in your phpinfo();) and time. Please note that within php you are unable to test for MIME types unless you brute force them, which is beyond the scope of this tutorial. You can however add extensions to PHP to enable access to the mime types of stored files on the server, please take a look here for more information. But for this tutorial we will examine the file extensions in the url and go from there.

Pages: 1 2 3 4

  1. One Response to “Tutorial: How to make an Image Upload and Thumbnailer Script with cURL”

  2. By ghprod INDONESIA Windows XP Mozilla Firefox 2.0.0.2 on Aug 17, 2008

    Hi … thnx 4 great script :D

Post a Comment