Sitephoria Knowledge Base

Frequently Asked Questions about Sitephoria Hosting
It is currently Thu Sep 19, 2019 4:25 pm

All times are UTC - 6 hours [ DST ]




Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 
Author Message
PostPosted: Thu May 27, 2004 8:21 pm 
Offline
Site Admin

Joined: Tue Mar 05, 2002 4:22 am
Posts: 107
<%
' This is example code on how to use CGZIP/UNZIP on the servers
' CGZIP by default is coded for VB5/6 and to use on ASP pages
' you need to use the server.createobject command below.
' The actual ZIP/UNZIP mechanism is located at http://www.info-zip.org
' extra help can be found at http://codeguru.earthweb.com/vb/articles/1854.shtml
' The example is to show how to ZIP/UNZIP files in 1 folder. You will have to
' add in your own code for recursion.

set oZip = server.createobject("CGZipLibrary.CGZipFiles")

oZip.ZipFileName = server.mappath("/filename.zip") 'file name for zipped files

oZip.AddFile server.mappath("/") 'folder to zip

oZip.AddFile server.mappath("/html/testfile.html") 'additional file to add

If oZip.MakeZipFile <> 0 then
response.write oZip.GetLastMessage
End If

set oUnZip = nothing


%>


Top
 Profile  
 
Display posts from previous:  Sort by  
Forum locked This topic is locked, you cannot edit posts or make further replies.  [ 1 post ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group