SitePoint Sponsor

User Tag List

Results 1 to 2 of 2
  1. #1
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Watertown
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    GZip Woes, .htaccess

    I'm trying to gzip my content, using a .htaccess wrapper. Here's what I've done so far.

    .htaccess
    Code:
    php_value auto_prepend_file /includes/begin_gzip.php
    php_value auto_append_file /includes/end_gzip.php
    /includes/begin_gzip.php
    PHP Code:
    <?php
        ob_start
    ("ob_gzhandler");
        echo 
    "Gzip enabled.<br />";
    ?>
    /includes/end_gzip.php
    PHP Code:
    <?php
        ob_flush
    ();
    ?>
    Yet all my pages still aren't showing up as gzipped, whats wrong?

    EDIT: They also aren't displaying "Gzip enabled." either.

  2. #2
    SitePoint Enthusiast
    Join Date
    Oct 2004
    Location
    Watertown
    Posts
    88
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Solved, turns out that PHP was running as a CGI Module...


Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •