Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 3 of 3
  1. #1
    New Coder
    Join Date
    Aug 2006
    Posts
    58
    Thanks
    1
    Thanked 0 Times in 0 Posts

    Automatic server unzip question

    I am planning a cms for my site and was wondering. Is it possible for me to submit the .zip of a new template. This will be the download file (the zip). Also though would the server be able to automatically unzip the contents of the zip, put the folder contained into a demos fold and then i can use that as the preview without uploading myself then having to input the URL to it.


    Example, I submit gangster.zip. This is a gangster template. They go to the gangster.zip download for download and go to extracted files to view the demo which would be index.html and contained images all in a gangster folder extracted from the zip automatically by server.

    Hard to explain If you can help its greatly appreciated.

  • #2
    ess
    ess is offline
    Regular Coder
    Join Date
    Oct 2006
    Location
    United Kingdom
    Posts
    866
    Thanks
    7
    Thanked 30 Times in 29 Posts
    Hello there,

    You should be able to do this easily.

    Here is a couple of tutorials that demonstrate how to read files contained within a zip archive.

    http://www.maconlinux.net/php-online...n/ref.zip.html

    http://www.phpfreaks.com/phpmanual/page/ref.zip.html

    I know you are after a script that would uncompress an archive, but you should be able to do that once you follow one of these tutorials. it is a simple read and write operation

    Good Luck.
    Ess

  • #3
    New Coder
    Join Date
    Aug 2006
    Posts
    58
    Thanks
    1
    Thanked 0 Times in 0 Posts
    Thanks I just wanted to know if it was possible. Was read up on it after I read my christmas book.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •