Mod Perl & Shrinkin' Shit

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • Unchilled
    Confirmed User
    • Sep 2001
    • 125

    #1

    Mod Perl & Shrinkin' Shit

    Can someone explain to me or refer me to a site that explains how to use mod perl or ZIP or whatever to compress big ass files and images. That is, if it exists.



    Thanks.
  • Helix
    Confirmed User
    • Feb 2002
    • 6021

    #2
    There is information and a free trial of the winzip software here.
    http://www.winzip.com/
    I have never used mod_perl for compression.

    Comment

    • Babaganoosh
      ♥♥♥ Likes Hugs ♥♥♥
      • Nov 2001
      • 15841

      #3
      How are you wanting to compress them? You trying to compress them on the server for download or what are you trying to do?
      I like pie.

      Comment

      • thepiper
        Confirmed User
        • Feb 2002
        • 31

        #4
        mod_perl is an apache module that allows you to access the apache module structues via perl instead of limiting you to C. It also keeps a copy of the perl interperter in memory to reduce startup time of perl scripts (that is the ones that you set mod perl to handle). mod perl won't do any compression for you. mod_gzip will however. It will gzip the output of whatever file/page your webserver has on the fly to reduce bandwith.. most browsers understand gzip encoded pages (actually i have never seen one that doesnt). just install mod_gzip and use the mod_gzip_on et al. directives to turn it on.

        Note: this will only save you BANDWITH not space on the server. Because documents/files are encoded on the fly.

        Comment

        • Mr.Fiction
          Confirmed User
          • Feb 2002
          • 9484

          #5
          http://www.remotecommunications.com/apache/mod_gzip/
          Don't be lazy, protect free speech: ACLU | Free Speech Coalition | EFF | IMPA

          Comment

          • NetRodent
            Confirmed User
            • Jan 2002
            • 3985

            #6
            You can also serve zipped content with mod_negotiation, which is part of the standard apache install. Its a bit more work setting up the content types but it works just as well.

            http://httpd.apache.org/docs/mod/mod_negotiation.html
            "Every normal man must be tempted, at times, to spit on his hands, hoist the black flag, and begin slitting throats."
            --H.L. Mencken

            Comment

            • Dreamman010
              Confirmed User
              • Jan 2002
              • 1081

              #7
              You can just use shell commands. In other words, pipe them into shell. Most shells have zip already installed so you could use the function 'system' in perl to call that program and zip your files.
              <a href="http://www2.famoushost.com/home.php" target="_blank"><b><FONT COLOR="FFFF00">www.FamousHost.com</font></b></a><br>Free Hosting With No Headers, Real FTP, <u>Get listed on the biggest TGP's with us!</u>

              Comment

              Working...