PHP: zip help

Discussion in 'PHP' started by born2hack, Oct 12, 2008.

  1. #1
    Is there a way to apply a password along with zipping files on a web server using PHP?

    And can you also RAR files using PHP?
     
    born2hack, Oct 12, 2008 IP
  2. qprojects

    qprojects Peon

    Messages:
    1,901
    Likes Received:
    103
    Best Answers:
    0
    Trophy Points:
    0
    #2
    qprojects, Oct 12, 2008 IP
    born2hack likes this.
  3. Greg Carnegie

    Greg Carnegie Peon

    Messages:
    385
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #3
    There is an easier way to do this. Since PHP 5.3 there is PHAR (PHp ARchive) library built into PHP core. You can uset it to create .phar files, but also it allows to create tar archives and zip's as far as i remember.
     
    Greg Carnegie, Oct 12, 2008 IP
  4. born2hack

    born2hack Banned

    Messages:
    294
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Thanks, qprojects, I shall try it out.

    And, Greg Carnegie, i actually was asking how to add password along with zipping the files.
     
    born2hack, Oct 12, 2008 IP
  5. born2hack

    born2hack Banned

    Messages:
    294
    Likes Received:
    4
    Best Answers:
    0
    Trophy Points:
    0
    #5
    DUDE, i love you rep added, and how do i extract files having a password?
     
    born2hack, Oct 12, 2008 IP