www.webdeveloper.com
Results 1 to 2 of 2

Thread: How to zip a folder from PHP

  1. #1
    Join Date
    Nov 2006
    Posts
    7

    How to zip a folder from PHP

    I have a folder with structure like this

    system/
    |__ temp1/
    |__ temp2/
    |__ test.html
    |__ ...


    I would like to create system.zip (or system.rar or system.gz) but how I can do it? thanks...

  2. #2
    Join Date
    Oct 2006
    Posts
    1,297
    exec

    (PHP 3, PHP 4, PHP 5)

    exec -- Execute an external program

    Description

    string exec ( string command [, array &output [, int &return_var]] )

    exec() executes the given command.

    http://us2.php.net/manual/en/function.exec.php

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

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



Recent Articles