runnerjp Posted August 16, 2006 Share Posted August 16, 2006 hey ok all iv done to my website is add a layout i created with photoshop and its realllyyy sloww loading ... [url=http://www.runnerselite.com]www.runnerselite.com[/url] is their any way to compress my website or something so it loads faster :( Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/ Share on other sites More sharing options...
Daniel0 Posted August 16, 2006 Share Posted August 16, 2006 Add this to the top of your page:[code]ob_start("ob_gzhandler");[/code] and this on the bottom: [code]ob_end_flush();[/code] Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-75740 Share on other sites More sharing options...
runnerjp Posted August 16, 2006 Author Share Posted August 16, 2006 sweet wat it do?? Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-75741 Share on other sites More sharing options...
runnerjp Posted August 16, 2006 Author Share Posted August 16, 2006 i added it and it just came up as text ??? Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-75746 Share on other sites More sharing options...
Daniel0 Posted August 16, 2006 Share Posted August 16, 2006 Do you still have the code there? Because it shows up fine for me.And what it does is that it checks what type of encoding the browser accepts ("gzip", "deflate" or none at all) and then returns the output accordingly. That means if the user's browser supports it, it will compress the content.Try only using [code]ob_start("ob_gzhandler");[/code] Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-75772 Share on other sites More sharing options...
ober Posted August 17, 2006 Share Posted August 17, 2006 I don't think that's a good idea. There are other ways to optomize a website. And if you've done things like minimizing graphics, optomizing graphics, and using CSS layouts to minimize layout coding, then I'd look at your host to see if they have a slow connection. Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-76210 Share on other sites More sharing options...
AndyB Posted August 18, 2006 Share Posted August 18, 2006 Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/runnerse/public_html/maq.php on line 16Did you remove something? Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-76528 Share on other sites More sharing options...
runnerjp Posted August 18, 2006 Author Share Posted August 18, 2006 ow yer sweet thanks....im tryin to get a php script workin but i aint havein much look in this forum lol Quote Link to comment https://forums.phpfreaks.com/topic/17751-compress-website/#findComment-76671 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.