note 70201 deleted from ref.zip by danbrown
| From: | danbrown@php.net | Date: | Wed, 29 Jun 2011 15:26:29 +0000 |
| Subject: | note 70201 deleted from ref.zip by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-181047@lists.php.net to get a copy of this message | ||
Note Submitter: Mishania at ketsujin dot com
----
Notes from phpContrib [ a t ] eSurfers D o t COM are a ROCK!!!
1) In order to make it work U'll probably need:
** Allow Apache service to interact with desktop, but in that case U will notice momentarely
console window opens and closes. That's may be annoying. The elegant solution instead of
allowing interaction is redirect the command to some temporary file, and get rid of it later on:
define('UNZIP_CMD','unzip -o @_SRC_@ -x -d
@_DST_@ > tmpfile.txt');
2) I would recommend to use 7-zip, it's free and completely relyable. Also, it's comes
with stand alone console executable which makes it quite convenient to place it in some exec library
folder within your source, and refferering directly to it.
define("UNZIP_CMD","7za.exe x @_SRC_@ -o@_DST_@ > tmpfile.txt");