12dstring Posted May 23, 2007 Share Posted May 23, 2007 I was wondering... I have a php script which is just hundreds of equations, the php file is around 500kb, but it only returns a few numbers so that the actual page displayed is under 1kb. Is it only the 1kb that counts towards my server bandwidth usage? I just needed to know whether to cut down the equations (reducing the accuracy) if it'll cost me 500kb of bandwidth every time they're viewed. Thanks, Dave Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/ Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 bandwidth is measured sending information from your server, to the client... not the parsing that the server does as far as a transmitted page thats 2kb big... sallgood Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/#findComment-259866 Share on other sites More sharing options...
448191 Posted May 23, 2007 Share Posted May 23, 2007 It does matter for latency though. Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/#findComment-259868 Share on other sites More sharing options...
kathas Posted May 23, 2007 Share Posted May 23, 2007 I wonder how much time does it take for the page to display the 2kb.... Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/#findComment-259870 Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 agreed... parsing does take some time(usually low, but it really depends on the programmer/ing)... if lots of people are trying to get to the same page at the same time... it can/will slow data transfer down a bit... but regardless... that still doesnt affect your max bandwidth :-) Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/#findComment-259871 Share on other sites More sharing options...
12dstring Posted May 23, 2007 Author Share Posted May 23, 2007 Thanks for the speedy replies. Just wanted to check It's just a load of maths functions, doesn't take any time at all to download. My site's not popular enough for me to start worrying about lots of people accessing the same page yet. Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/#findComment-259873 Share on other sites More sharing options...
taith Posted May 23, 2007 Share Posted May 23, 2007 aah... math functions are usually pretty quick... its loops that take up time... lol Quote Link to comment https://forums.phpfreaks.com/topic/52649-solved-php-and-server-bandwidth-usage/#findComment-259878 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.