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 :-)
Asked
Active
Viewed 129 times
-1
-
Please add some meaningful error messages. What goes wrong? – Pekka Nov 12 '10 at 22:08
-
What does this line echo ( $this->zip->open(self::$backup,ZIPARCHIVE::CREATE) == true ? 'true' : 'false'); display in your code? – Mark Baker Nov 12 '10 at 22:27
1 Answers
-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