need help about bandwidth ..

Discussion in 'PHP' started by mr_m, Oct 16, 2007.

  1. #1
    I have a question about calculating bandwidth ..

    If I have a php file that is 20 kb generates HTML page which size is 8 (for example)

    and there are 10 visitors viewed that file . The bandwidth usage will be 200 kb or 80 kb ..

    Thanks ..
     
    mr_m, Oct 16, 2007 IP
  2. kreoton

    kreoton Peon

    Messages:
    229
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #2
    80kb because bandwidth calculates only outgoing data pure html css js and images videos etc...
     
    kreoton, Oct 16, 2007 IP
  3. mr_m

    mr_m Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thanks . but what about DB is transferring data in/out affects the bandwidth?
     
    mr_m, Oct 17, 2007 IP
  4. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #4
    that doesnt count as bandwidth. that's just server processing
     
    Lordy, Oct 17, 2007 IP
  5. tamen

    tamen Peon

    Messages:
    182
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Unless the database is on a remote server. But who would do that?
     
    tamen, Oct 17, 2007 IP
  6. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #6
    well, usually if its on a remote server, it would be on another server in the same dc, so its still not counted.

    unless you *really* mean remote server, in that case, who WOULD do that? :p
     
    Lordy, Oct 17, 2007 IP
  7. mr_m

    mr_m Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    firstly thanks for help ..
    Actually its host address is something like that:
    sql2.host.com
    sql7.host.com
    * . host . com
    so .. ?
     
    mr_m, Oct 17, 2007 IP
  8. Lordy

    Lordy Peon

    Messages:
    1,643
    Likes Received:
    29
    Best Answers:
    0
    Trophy Points:
    0
    #8
    so you DO have an external database?! wow...not many people have that.

    any specific reason? :O

    do you know if this is connected via internal networking? or not?

    if not, it will count as bandwidth usage.
     
    Lordy, Oct 17, 2007 IP
  9. jnestor

    jnestor Peon

    Messages:
    133
    Likes Received:
    7
    Best Answers:
    0
    Trophy Points:
    0
    #9
    Some shared hosts will setup all the databases on one machine and all the web pages on another. Just simplifies things rather than having MySQL running on every machine. Still that's not going to count for bandwidth since it's all within the same local network.
     
    jnestor, Oct 17, 2007 IP
  10. mr_m

    mr_m Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #10
    I just asked in the support center of the host , they ansewred that it will not be calculated because the servers are locally connected to each other .

    I'm really glad about joining this forum .. THANKS guys for help .
     
    mr_m, Oct 18, 2007 IP
  11. benajnim

    benajnim Peon

    Messages:
    20
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #11
    If you're concerned about bandwidth usage, you might want to see if mod_gzip is enabled on your web server (can cut by up to 80% on outgoing text/html).

    You can also compress data before putting it into and getting it out of the database which can cut down on disk usage considerably.
     
    benajnim, Oct 18, 2007 IP
  12. mr_m

    mr_m Peon

    Messages:
    8
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #12
    can u explain alittle more ..
     
    mr_m, Oct 18, 2007 IP
  13. tamen

    tamen Peon

    Messages:
    182
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #13
    tamen, Oct 18, 2007 IP