-1

i try to write a script, with which will generate backup for directory. I write this, but not work ... can't create zip file :S Maybe it's wrong, in my OOP style, i still newbie :-)

Pastebin Code

1 Answers1

-1

Without trying to fix your code,

Please see post from: peter at boring dot ch at http://se.php.net/manual/en/function.ziparchive-addfile.php

Hopefully solves your needs.

regards,

//t

Teson
  • 6,644
  • 8
  • 46
  • 69
  • Nothing wrong, when i open a file it's blank. echo ( $this->zip->open(self::$backup,ZIPARCHIVE::CREATE) == true ? 'true' : 'false'); is for test, but show true. I test this code, but not work, i wonna edit my class. – DevNull Nov 13 '10 at 05:58