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 ..
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?
firstly thanks for help .. Actually its host address is something like that: sql2.host.com sql7.host.com * . host . com so .. ?
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.
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.
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 .
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.
You can compress strings with this command: http://php.net/manual/en/function.gzcompress.php And expand them again with this: http://php.net/manual/en/function.gzuncompress.php