SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Wizard lukeurtnowski's Avatar
    Join Date
    Mar 2003
    Location
    Coronado
    Posts
    1,618
    Mentioned
    3 Post(s)
    Tagged
    0 Thread(s)

    Gathering image data?

    I have a formm that uploads up to 6 images, once that is done, I'd like to display each image along with some info about each image before I approve them, like file size (in kilobytes), Length:, Width:, File Type (making sure its in image format. Im pretty sure getimagesize() is perfect for the last three but am sort of confused how to echo out the 3 values...Here is what I have soo far,...
    PHP Code:
        echo "<label>Image".$x.":</label><img src=../images/ASP_Images/".${'Image'.$x}. " /><br />";
        echo ${
    'Image'.$x} . ': ' filesize("../images/ASP_Images/".${'Image'.$x}) . /1024 " Kb"
    I just dont understand how to implement getimagesize()?
    Thanks all
    Oh, and this code runs through a for loop up to 6 times if needed
    "Oh, and Jenkins--apparently your mother died this morning."

  2. #2
    SitePoint Wizard silver trophy
    Join Date
    Mar 2006
    Posts
    6,132
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    the manual provides sample usage for most functions.


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •