Total Bandwidth Used ?? PHP? Which Language - GURU's Help Needed ;)

Discussion in 'Programming' started by Stace, Jan 30, 2012.

  1. #1
    Hi Everyone,

    I am not sure what syntax language this should be coded in, But I was hoping there was a code GURU, here that could point me in the right direction. ;-)

    I have an image hosting website and I am trying to measure the bandwidth used when images load and then have the page display the TOTAL bandwidth used to date like so: ( this would be per page / image )

    634,567 views : 279.45 GB bandwidth

    Can Anyone help me code this or tell me how I can code it?

    Thanks so much in advance
     
    Solved! View solution.
    Stace, Jan 30, 2012 IP
  2. earnnet

    earnnet Member

    Messages:
    100
    Likes Received:
    0
    Best Answers:
    1
    Trophy Points:
    26
    #2
    I don't think you could check the exact value with PHP. Use gzip compression. Use PNG instead of all other image formats (such as BMP), don't load specific CSS sheets if not needed, etc. Start reviewing your code - good luck.
    635K views from how much unique visitors? That counts. Returning visitors may have cached versions of your page.
     
    earnnet, Jan 30, 2012 IP
  3. #3
    hello

    if you log all images loaded is simple

    xviews X imagesize = total bandwidth now you have a bandwidth per image make one array and use array_sum() .

    Best
     
    Last edited: Feb 1, 2012
    Estevan, Feb 1, 2012 IP
  4. Stace

    Stace Active Member

    Messages:
    54
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    50
    #4
    Hi

    Could you tell me how to code that? OR point me in the right direction?

    Thanks so much,


     
    Stace, Feb 3, 2012 IP
  5. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #5
    hello

    you make a query from database and get images view ok ? after get image size , if like i help you to make but need more info to help

    Best
     
    Estevan, Feb 3, 2012 IP
    Stace likes this.
  6. Stace

    Stace Active Member

    Messages:
    54
    Likes Received:
    11
    Best Answers:
    0
    Trophy Points:
    50
    #6
    Hi,

    Are you available for hire?

    Let me know, I am looking for a PHP person to help me build / add - on to a script ;)


     
    Stace, Feb 4, 2012 IP
  7. Estevan

    Estevan Peon

    Messages:
    120
    Likes Received:
    8
    Best Answers:
    1
    Trophy Points:
    0
    #7
    hello

    i sent my contact in PM

    Best
     
    Estevan, Feb 4, 2012 IP