Tutorial: How to make an Image Upload and Thumbnailer Script PHP

Tutorial: How to make an Image Upload and Thumbnailer Script PHP

5. The last section to this tutorial. After the html form on the same page thumbs.html i added this:

	
	Link:

What this does is see if the variable $success is a 1 or a 0; if it is true or false. If it is true, that means the file creation worked and we can display it. So what it does it makes a html img placeholder with the filename in the source. This shows the image on the page nicely. Next up is a simple text field where people can copy the uploaded image’s link and give it to friends.

Posted by VoiDeT

Categorised under PHP
Bookmark the permalink or leave a trackback.

7 Comments

  1. paparanch

    i don’t whats the problem with this because when i uploaded a gif file…its not animating anymore…why?

    June 16, 2008 @ 2:21 am
  2. pouria

    hi :)
    i recive this error with every kind of images :
    File is not an image! Don’t waste my time!

    so whats the problem?

    August 7, 2008 @ 8:29 pm
  3. That’s cool. I test it and it really Great!!

    October 8, 2008 @ 1:15 pm
  4. rcarlos3

    i have the same problem as “pouria”,

    with FF its ok, but with IE it doesnt accept the imagees..

    whats the problem?

    February 19, 2009 @ 6:16 am
  5. ehi

    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

    March 28, 2009 @ 9:24 am
  6. VoiDeT

    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

    March 28, 2009 @ 12:45 pm
  7. great work :D

    April 15, 2009 @ 9:05 pm

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*

You may use these HTML tags and attributes: <a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>

or