37 users online (0 members and 37 guests)  


  Results 1 to 8 of 8

Related

  1. Replies: 1
  2. File uploading with PHP on server    Forum: PHP Forum
    Replies: 2
  3. Replies: 3
  4. uploading files with pure asp and form    Forum: ASP Forum
    Replies: 4
  5. Uploading and unzipping files on server    Forum: HTML Forum
    Replies: 7
  1. #1
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32

    Uploading and unzipping files on server

    Any way to upload a zip file to server directory, then have it unzip on the server?

  2. #2
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    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.

    http://www.winzip.com/wzcline.htm

    And apparently there is an ASP object called WScript.Shell which lets you script shell command son the server.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  3. #3
    benzden's Avatar
    Senior Member

    Status
    Offline
    Join Date
    Feb 2002
    Location
    San Antonio, Texas
    Posts
    652
    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.

  4. #4
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    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.
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  5. #5
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32
    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.

  6. #6
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    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
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?

  7. #7
    nassau12's Avatar
    Junior Member

    Status
    Offline
    Join Date
    Nov 2002
    Location
    Princeton, NJ
    Posts
    32


    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.

  8. #8
    QuietDean's Avatar
    Administrator

    Status
    Offline
    Join Date
    Oct 2000
    Location
    Bournemouth, UK
    Posts
    2,662
    lol. or offer a student some beer to let you use his connection...
    If one of our members helps you, please click the icon to add to their reputation!
    No support via email or private message - use the forums!
    Before you ask, have you Searched?



Tags for this Thread