acidglitter Posted December 29, 2007 Share Posted December 29, 2007 my site has been using up a lot of bandwidth and i'm wondering if anyone has any advice on ways to code that use less bandwidth. like for one is it faster, and does it use less bandwidth to use sessions or mysql queries to get/keep information? Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/ Share on other sites More sharing options...
trq Posted December 29, 2007 Share Posted December 29, 2007 php has long been parsed prior to any output, so it can't help much with bandwidth. I suggest you look at your html and images. Make sure you are using CSS wherever possible and including it from a central location (not inline css). Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-425023 Share on other sites More sharing options...
acidglitter Posted December 29, 2007 Author Share Posted December 29, 2007 thanks for the help! it really makes a difference to have something be like.. div id="name" and all of the formatting in one stylesheet instead of div style="formats" ? Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-425090 Share on other sites More sharing options...
PHP_PhREEEk Posted December 29, 2007 Share Posted December 29, 2007 There are all kinds of tools available for you to monitor bandwidth, and that's what you should focus on. Not only will it answer the question for now, it will alert you to problems in the future. If you have a CPanel account, then you most likely have awstats or webalizer available. You can use those tools to see exactly which files and/or scripts are eating the bandwidth. If you don't have CPanel or pre-installed analysis tools, you can install awstats yourself (it's open source), just like phpMyAdmin. PhREEEk Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-425112 Share on other sites More sharing options...
winmastergames Posted December 29, 2007 Share Posted December 29, 2007 You could allways have a free webhost that hosts images and css styles and stuff like that Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-425171 Share on other sites More sharing options...
Daniel0 Posted December 29, 2007 Share Posted December 29, 2007 You could compress the output: http://php.net/ob_gzhandler Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-425208 Share on other sites More sharing options...
acidglitter Posted December 30, 2007 Author Share Posted December 30, 2007 Thanks for the help! It looks like the layout image was hurting my bandwidth the most, so I moved it over to my other site. But will that make it load slower because its being hosted on a different server? Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-426097 Share on other sites More sharing options...
trq Posted December 31, 2007 Share Posted December 31, 2007 Thanks for the help! It looks like the layout image was hurting my bandwidth the most, so I moved it over to my other site. But will that make it load slower because its being hosted on a different server? Not really, but the idea of a layout image sounds a bit dodgy. Can we see a link to your site? Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-426256 Share on other sites More sharing options...
cooldude832 Posted December 31, 2007 Share Posted December 31, 2007 who is your host cause now a days with gigabit the idea of bandwidth restrictions is almost obsolete. Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-426258 Share on other sites More sharing options...
acidglitter Posted December 31, 2007 Author Share Posted December 31, 2007 my host is webhostfreaks (they host phpfreaks) and my site that i'm talking about is http://zombieadds.com/ i know the layout image is huge for a site like that, but i really like how it all looks Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-426810 Share on other sites More sharing options...
AndyB Posted December 31, 2007 Share Posted December 31, 2007 Good grief, there are 800kb of images on that page. You should refuse to accept anything over about 10kb or your site is always going to have bandwidth problems. Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-426823 Share on other sites More sharing options...
acidglitter Posted January 1, 2008 Author Share Posted January 1, 2008 i know they're all direct linked from myspace. i didn't think that would hurt my bandwidth too much when they're not even on my site Quote Link to comment https://forums.phpfreaks.com/topic/83537-less-bandwidth/#findComment-427085 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.