image size in bytes via php

Discussion in 'PHP' started by knawaz, Nov 23, 2008.

  1. #1
    i am trying to download a file from external resource, along with data i get, in the start, i need to know size of actual bytes to be downloaded.

    I can't rely on get content size provided by http, so want to have it specified in the start of actual data.


    Any one can please help me in this problem.

    Regards,

    Kashif Nawaz
     
    knawaz, Nov 23, 2008 IP
  2. jestep

    jestep Prominent Member

    Messages:
    3,659
    Likes Received:
    215
    Best Answers:
    19
    Trophy Points:
    330
    #2
    Try: http://php.net/filesize

    I'm not exactly sure how you're accessing the file, but this should give you the info you need.
     
    jestep, Nov 24, 2008 IP
  3. wmtips

    wmtips Well-Known Member

    Messages:
    601
    Likes Received:
    70
    Best Answers:
    1
    Trophy Points:
    150
    #3
    wmtips, Nov 24, 2008 IP