Upload and extract..

Ask about a PHP problem here.
Post Reply
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Upload and extract..

Post by ashwood »

How would i upload a zip or rar file and it automatically extract to a folder of my choice so that the rar or zip had been uploaded but i have the contents extracted else where if that makes sense..

thanks
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Upload and extract..

Post by jacek »

Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: Upload and extract..

Post by ashwood »

Is there any tutorials been done? I find it hard to work off code thats just bunshed up because you don't know what any of it mean. Tutorials explain therefore i learn :)
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Upload and extract..

Post by jacek »

I haven’t done one, but it's not a new idea so you probably will find one.

Example #1 on this page http://php.net/manual/en/function.zipar ... ractto.php pretty much sums up the basics.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: Upload and extract..

Post by ashwood »

im sure i will find something :) no chance you could do a tutorial on it though? It can't take that long can it surely? would be much appraciated :):)
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Upload and extract..

Post by jacek »

If you are making that an official suggestion I might ;)
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: Upload and extract..

Post by ashwood »

Yes Yes i am :P please can you do a tutorial showing how to upload a zip/rar and it extracting to a folder of your choice but still keeping the zip/rar file on the server somewhere (of your choice)

my official suggestion (A)

please tell me if you can do it so i can watch out for it :D
I would put a signature.. BUT, i don't have the time.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Upload and extract..

Post by jacek »

I can do that, some time this week probably. It should be a pretty quick one.
Image
ashwood
Posts: 144
Joined: Thu May 12, 2011 7:17 am

Re: Upload and extract..

Post by ashwood »

jacek wrote:I can do that, some time this week probably. It should be a pretty quick one.


cheers mate please link me up asap!! thanks
I would put a signature.. BUT, i don't have the time.
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: Upload and extract..

Post by EcazS »

If you upload it and then it extracts wouldn't you have to wait a really long time? o_O
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Upload and extract..

Post by jacek »

EcazS wrote:If you upload it and then it extracts wouldn't you have to wait a really long time? o_O

Possibly, it would be extracted while the "upload done" page was loading, to the user it would just be the same as the file taking a bit longer to upload.
Image
bowersbros
Posts: 534
Joined: Thu May 05, 2011 8:19 pm

Re: Upload and extract..

Post by bowersbros »

But with a powerful server like Jaceks, I imagine it wouldnt be that noticable.
I don't like to brag, but I wasn't circumcised. I was circumnavigated. ;)

Want to learn something new? Or maybe reinforce what you already know? Or just help out? Please subscribe to my videos: http://goo.gl/58pN9
User avatar
EcazS
Posts: 789
Joined: Fri May 06, 2011 5:29 pm

Re: Upload and extract..

Post by EcazS »

bowersbros wrote:But with a powerful server like Jaceks, I imagine it wouldnt be that noticable.


Unless someone uploads a 10GB file. Like a Blu-Ray 1080p Movie.... I hate how big they are, just FYI.
User avatar
jacek
Site Admin
Posts: 3262
Joined: Thu May 05, 2011 1:45 pm
Location: UK
Contact:

Re: Upload and extract..

Post by jacek »

Yeah a large file would take a lot longer, but it would also take longer to upload so they might not notice as much ?

Also, it would be pretty hard to actually accept a file upload of 10GB on even a average server.
Image
Post Reply