Results 1 to 8 of 8
please help with uploading the files onto the web Forum: HTML ForumReplies: 1
File uploading with PHP on server Forum: PHP ForumReplies: 2
Need A Script For Uploading Files To Server Forum: PHP ForumReplies: 3
uploading files with pure asp and form Forum: ASP ForumReplies: 4
Uploading and unzipping files on server Forum: HTML ForumReplies: 7
06-07-2003, 10:57 AM #1
Uploading and unzipping files on server
Any way to upload a zip file to server directory, then have it unzip on the server?
06-07-2003, 12:12 PM #2
Sure, but it depends on the server.
On a *NIX server, you can upload using php and then use php's gzip functions to unzip it.
On a windows server, asp you can get objects to enable uploading, and I am sure you can get objects that allow unzipping.
Jst had a look, winzip itself has a commandline tool.
And apparently there is an ASP object called WScript.Shell which lets you script shell command son the server.
06-07-2003, 02:05 PM #3
Learn something new everyday - didn't think any 'secure' server would allow that sort of stuff -- especially for unzipping that allows execution of one of the files at the same time --- thereby facilitating the ability to hack into or damage the contents of the server.
06-07-2003, 02:08 PM #4
As long as the uploading/unzipping script was well written, there should be no problem.
I would tend to get a file listing of the zipfile contents before unzipping, and if it contains anything other than what I wanted (like .jpg, .gif) then I would discard the whole file.
06-07-2003, 02:35 PM #5
Actually, I am not worried about the contents of the zipped file. I am uploading about 2000 php files to my server, over a 56K modem, as you can imagine, it takes a painful amount of time. I was just thinking of ways to expedite this process.
06-07-2003, 02:58 PM #6
Put them on a CD, take them to an internet cafe during the quiet period, upload the lot in less than an hour using the high-bandwidth.
This would probably be cheaper than your dialup charges (if you have any) anyway
06-07-2003, 04:36 PM #7
This enlightened community, Princeton New Jersey, has no internet cafes. If I could hack into the university's T-1 lines...Put them on a CD, take them to an internet cafe during the quiet period, upload the lot in less than an hour using the high-bandwidth.
Last edited by nassau12; 06-07-2003 at 04:39 PM.
06-07-2003, 04:39 PM #8
lol. or offer a student some beer to let you use his connection...