SitePoint Sponsor

User Tag List

Results 1 to 3 of 3
  1. #1
    SitePoint Evangelist =X='s Avatar
    Join Date
    Jun 2001
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    upload limitation

    I guesse this is a stupid question, but I couldn't find any posts with it so here it goes:
    I want to upload an image with a script, now how can I restrict the size - not the file size but the dimension size (e.g. 130*500 pixels)?
    PHP-Webservices - Profesional Hosting and Programming of sites.

  2. #2
    Node mutilating coot timnz's Avatar
    Join Date
    Feb 2001
    Location
    New Zealand
    Posts
    516
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I guess you could use the image size functions in php, and see if they are more than the size you specify, haven't got a direct link to them right now, cos I'm off to sleep land , but it is at php.net, I think it is getimagesize() or something along those lines.

  3. #3
    SitePoint Evangelist =X='s Avatar
    Join Date
    Jun 2001
    Posts
    487
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    yup, that's the one
    thx
    PHP-Webservices - Profesional Hosting and Programming of sites.


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
  •