login about faq

Greetings, i am working on a local server (wamp/easyphp). I am trying to use activex as php extension.

so, for testing i use following code:

$objZip = new COM("Chilkat.Zip2");

$success = $objZip->UnlockComponent('Unlock code goes here');
if ($success != true)
    exit('Zip reg error!');

$success = $objZip->NewZip("./1.zip");

if ($success != true)
    exit('New Zip error!');

$success = $objZip->AppendString('Sample.txt', 'i love to test');
if ($success != true)
    exit('Add error!');

$success = $objZip->WriteZipAndClose();
if ($success != true)
    exit('Zip Write error!');

$objZip = null;

but instead of saving files to current directory (where the php file is) it savings file to following directory:

c:\Program Files\EasyPHP-12.1\apache\

And i don't know how to get that file from that directory to current directory.

So, any help would be highly appreciated :)

....best regards

asked Feb 22 '14 at 09:29

mAlam's gravatar image


Be the first one to answer this question!
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or __italic__
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: Feb 22 '14 at 09:29

Seen: 1,808 times

Last updated: Feb 22 '14 at 09:29

powered by OSQA