4WebHelp
 FAQ  •  Search  •  User Groups  •  Forum Admins  •  Smilies List  •  Statistics  •  Rules   •  Login   •  Register
Toggle Navigation Menu

 JavaScript and GZip compression
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic
Author Message
Milchbazi
Junior WebHelper
Junior WebHelper


Joined: 11 Mar 2003
Posts: 15
Location: NH, USA

PostPosted: Thu Mar 13, 2003 7:20 pm (14 years, 7 months ago) Reply with QuoteBack to Top

ok, here's the link: phpinfo()

________________________________
TS Designs
___________________________
OfflineView User's ProfileFind all posts by MilchbaziSend Personal MessageVisit Poster's Website
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Thu Mar 13, 2003 7:26 pm (14 years, 7 months ago) Reply with QuoteBack to Top

I don't know about you daniel, but I don't think it's enabled...I searched the page for "gzip" and all I could find was the stuff my browser said it would accept.

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Thu Mar 13, 2003 7:33 pm (14 years, 7 months ago) Reply with QuoteBack to Top

Actually, it is enabled. What you have to look for is zlib.

So, Milchbazi, the code you can use instead is the following (tell us if it works Smile):

Code:
// Gzips the page, to save on bandwidth
ob_start('ob_gzhandler');

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Milchbazi
Junior WebHelper
Junior WebHelper


Joined: 11 Mar 2003
Posts: 15
Location: NH, USA

PostPosted: Fri Mar 14, 2003 12:25 am (14 years, 7 months ago) Reply with QuoteBack to Top

I don't know if it works. I put it on the top of the script, but how can I see the compression? But what I can say for sure: No errors. So it doesn't work or it works without errors Confused

________________________________
TS Designs
___________________________
OfflineView User's ProfileFind all posts by MilchbaziSend Personal MessageVisit Poster's Website
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Fri Mar 14, 2003 12:53 am (14 years, 7 months ago) Reply with QuoteBack to Top

no errors is always a good sign...if it wasn't enabled you'd get a warning at least.

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Milchbazi
Junior WebHelper
Junior WebHelper


Joined: 11 Mar 2003
Posts: 15
Location: NH, USA

PostPosted: Fri Mar 14, 2003 3:19 am (14 years, 7 months ago) Reply with QuoteBack to Top

But is there a way to find out if it works properly? Or the status of the compression - like my script where it comes: gzcompressed: 2.44 kb uncompressed: 7.63 kb or so?

Do you know how it phpBB2 does? It's the best forum I know and it has a lot of good features and a proper script.

________________________________
TS Designs
___________________________
OfflineView User's ProfileFind all posts by MilchbaziSend Personal MessageVisit Poster's Website
adam
Forum Moderator & Developer



Joined: 26 Jul 2002
Posts: 704
Location: UK

PostPosted: Fri Mar 14, 2003 3:23 am (14 years, 7 months ago) Reply with QuoteBack to Top

hmmm...I'm not sure, check the php manual

________________________________
It's turtles all the way down...
OfflineView User's ProfileFind all posts by adamSend Personal MessageVisit Poster's Website
Daniel
Team Member



Joined: 06 Jan 2002
Posts: 2564

PostPosted: Fri Mar 14, 2003 7:01 am (14 years, 7 months ago) Reply with QuoteBack to Top

If you check out, leknor.com there's a script to check if your page is being gzipped:

http://leknor.com/code/gziped.php

________________________________
Image
OfflineView User's ProfileFind all posts by DanielSend Personal Message
Milchbazi
Junior WebHelper
Junior WebHelper


Joined: 11 Mar 2003
Posts: 15
Location: NH, USA

PostPosted: Sat Mar 15, 2003 4:55 am (14 years, 7 months ago) Reply with QuoteBack to Top

Thanks a lot you both. It runs great Very Happy

________________________________
TS Designs
___________________________
OfflineView User's ProfileFind all posts by MilchbaziSend Personal MessageVisit Poster's Website
Display posts from previous:      
Post New TopicReply to Topic
View Previous Topic Print this topic View Next Topic


 Jump to:   


Go to page Previous  1, 2

You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot edit your posts in this forum.
You cannot delete your posts in this forum.
You cannot vote in polls in this forum.


Page generation time: 0.059049 seconds :: 17 queries executed :: All Times are GMT
Powered by phpBB 2.0 © 2001, 2002 phpBB Group :: Based on an FI Theme