Upload images on screen using PHP

Discussion in 'PHP' started by pierrick419, Aug 15, 2008.

  1. #1
    Hi All,

    I have browsed the web for a while now but cannot find the script I am after - I want users to be able to upload images directly on screen. I would also like to be able to control the size and dimensions of the uploaded images.

    Also is there any way to set up the script so the user can upload the image at the top left of the script for example? Or within a div containing several other divs within, is there a way to offer the user to choose in which div he/she wants to upload the image into?

    Thanks
    P :D
    Have a good week end!
     
    pierrick419, Aug 15, 2008 IP
  2. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #2
    How exactly do you mean? Like via AJAX or another method?

    Jay
     
    jayshah, Aug 15, 2008 IP
  3. pierrick419

    pierrick419 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Euh Ajax? I do not know to be honest.

    I saw once on a website a simple form allowing users to browse for images and submit. Once submitted, the image is displayed on the screen.

    Hope this helps!

    Thanks
     
    pierrick419, Aug 15, 2008 IP
  4. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #4
    jayshah, Aug 15, 2008 IP
  5. pierrick419

    pierrick419 Peon

    Messages:
    11
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    yes this it it!

    I'll have a go at it over the week end and see hoe it goes

    Thanks!

    P :)
     
    pierrick419, Aug 15, 2008 IP
  6. jayshah

    jayshah Peon

    Messages:
    1,126
    Likes Received:
    68
    Best Answers:
    1
    Trophy Points:
    0
    #6
    No problem. It should just be a case of using echo/print to output the images, and you can use http://uk3.php.net/manual/en/function.getimagesize.php to get the dimensions :)

    Jay
     
    jayshah, Aug 15, 2008 IP