Jump to content


Photo

compress website ???


  • Please log in to reply
7 replies to this topic

#1 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 16 August 2006 - 03:59 PM

hey ok all iv done to my website is add a layout i created with photoshop and its realllyyy sloww loading ... www.runnerselite.com is their any way to compress my website or something so it loads faster :(

#2 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 16 August 2006 - 04:02 PM

Add this to the top of your page:
ob_start("ob_gzhandler");
and this on the bottom:
ob_end_flush();


#3 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 16 August 2006 - 04:03 PM

sweet wat it do??

#4 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 16 August 2006 - 04:11 PM

i added it and it just came up as text  ???

#5 Daniel0

Daniel0
  • Staff Alumni
  • Advanced Member
  • 11,956 posts

Posted 16 August 2006 - 04:55 PM

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
ob_start("ob_gzhandler");


#6 ober

ober
  • Staff Alumni
  • Advanced Member
  • 5,337 posts
  • LocationEast Coast, USA

Posted 17 August 2006 - 02:32 PM

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.

Info: PHP Manual


#7 AndyB

AndyB
  • Staff Alumni
  • Advanced Member
  • 5,465 posts
  • LocationToronto

Posted 18 August 2006 - 12:13 AM

Parse error: syntax error, unexpected T_CONSTANT_ENCAPSED_STRING in /home/runnerse/public_html/maq.php on line 16

Did you remove something?
Legend has it that reading the manual never killed anyone.
My site

#8 runnerjp

runnerjp
  • Members
  • PipPipPip
  • Advanced Member
  • 2,214 posts

Posted 18 August 2006 - 09:52 AM

ow yer sweet thanks....im tryin to get a php script workin but i aint havein much look in this forum lol




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users