Upload zip, rar in one folder specific and Extract zip, rar in one folder specific
ZiNgA BuRgA Offline
Fag
*******
Posts: 3,357
Joined: Jan 2008
Post: #4
RE: Upload zip, rar in one folder specific and Extract zip, rar in one folder specific
(08-09-2011 02:58 PM)Gypaete Wrote:  How do I do that?
That's for you to figure out.

PHP only has support for ZIP, not RAR.  You'll need to use the unrar executable for that.  How to do that will depend on many things, such as server setup/restrictions, so I'm not going to explain further.
From a PHP side, the general idea would be

PHP Code:
shell_exec('unrar x '.escapeshellarg($archive));

but of course, you need to have unrar installed.


My Blog
(This post was last modified: 08-09-2011 04:10 PM by ZiNgA BuRgA.)
08-09-2011 04:08 PM
Find all posts by this user Quote this message in a reply

« Next Oldest | Next Newest »

Messages In This Thread
RE: Upload zip, rar in one folder specific and Extract zip, rar in one folder specific - ZiNgA BuRgA - 08-09-2011 04:08 PM

 Standard Tools
Forum Jump: