View Full Version : active, online zipping or rar'ing.
12-28-2005, 07:34 PM
i want to upload something through a form, and have the script do some sort of compression file, like:
if it makes any difference, it is a unix machine.
12-28-2005, 08:57 PM
PHP itself cannot do the compression but you can use PHP to execute any command line program you want using the Program Execution Functions (http://www.php.net/manual/en/ref.exec.php). you just need to call the excutable to whatever compression app you are using with the required command line switches/arguments.
12-29-2005, 01:35 AM
can i get an example how to use it for my purposes?
like how do i convert the .exe for something like winrar into unix to get it to work.
12-29-2005, 02:00 AM
you need to have the command line executable to whatever program you wish to use somewhere on your server and then feed that path to exec (http://www.php.net/exec) with whatever command line arguments your program expects to see.
12-29-2005, 02:23 AM
Powered by vBulletin® Version 4.2.2 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.