# Thanks and one note

 Recommend this page to a friend! Stumble It! Bookmark in del.icio.us

 Zip > All threads > Thanks and one note > (Un) Subscribe thread alerts
Subject: Thanks and one note Hi Thanks for the class! Works great except one notice 3 Karen 2011-12-01 12:14:08 2011-12-01 13:46:02

 1. Thanks and one note Reply Report abuse
 Karen 2011-12-01 12:14:08 Hi Thanks for the class! Works great except one notice which I've managed to get around. I was getting the notice "Notice: Undefined property: Zip::\$addExtraField" which is no longer showing up after initialising \$this->addExtraField = false; in the constructor.

 2. Re: Thanks and one note Reply Report abuse
 Karen 2011-12-01 12:45:56 - In reply to message 1 from Karen Correction: I thought I had corrected the problem but I haven't. addFile still isn't working. Any idea what I'm doing wrong? (See code below) \$zip = new Zip(); foreach (\$tutorials as \$tutorial) { \$file = PDF_PATH.\$tutorial['slug'].'.pdf'; if (file_exists(\$file)) { \$zip->addFile(file_get_contents(\$file), \$file); } } \$zip->sendZip('test.zip');

 3. Re: Thanks and one note Reply Report abuse
 Asbjorn Grandt 2011-12-01 13:46:04 - In reply to message 2 from Karen in the Zip.php source, search for all instances of addExtraFields and replace with addExtraField I'll update the source listing later. Thanks for notifying me.