SitePoint Sponsor

User Tag List

Results 1 to 4 of 4

Thread: tar.gz

  1. #1
    SitePoint Zealot jadmadi's Avatar
    Join Date
    Sep 2003
    Location
    Jordan
    Posts
    154
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    tar.gz

    guys, is it possible to tar.gz all files in a certain folder using php?
    what i'm looking for is
    compressing and uncompressing php tool.

  2. #2
    SitePoint Member
    Join Date
    Dec 2003
    Location
    Marion, Arkansas
    Posts
    10
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    Quote Originally Posted by EasyHTTP
    guys, is it possible to tar.gz all files in a certain folder using php?
    what i'm looking for is
    compressing and uncompressing php tool.
    I've seen websites which zip up their content in .zip format, I'm not sure about tar.gz though.

  3. #3
    With More ! for your $ maxor's Avatar
    Join Date
    Feb 2004
    Location
    Scottsdale, Arizona
    Posts
    909
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    what about...

    PHP Code:

    //-- $tar -cvf folderName.tar folderName; gzip folderName.tar
    shell_exec('tar -cvf  ' .$folderName'.tar ' .$folderName'; gzip '$folderName); 

  4. #4
    SitePoint Zealot
    Join Date
    Mar 2004
    Location
    New Jersey
    Posts
    140
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    PHP Code:
     `tar -czf $folderName.tgz .`; 


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
  •