Re: zipfile problems

From: Date: Thu, 07 Apr 2005 12:07:10 +0000
Subject: Re: zipfile problems
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-212524@lists.php.net to get a copy of this message
George Pitcher wrote: > Hi, > > My first posting for a long while. > > If anyone is using the 'class.zipfile.php' library, can they help me. I am > trying to create some PDFs, then zip and email them back to me. Not using the class, but... > > I get the zipfile but it only contains the first pdf file, even though 4 are > being created in my test site. > > I am getting the following errors on my page: > ============= > Notice: Undefined variable: crc in C:\Program Files\Apache > Group\Apache2\htdocs\egretgui\includes\class.zipfile.php on line 62 > Notice: Undefined variable: c_len in C:\Program Files\Apache > Group\Apache2\htdocs\egretgui\includes\class.zipfile.php on line 63 > Notice: Undefined variable: unc_len in C:\Program Files\Apache > Group\Apache2\htdocs\egretgui\includes\class.zipfile.php on line 64 > ============= > You're just getting those errors because the class is using undefined variables. If you just initialize the variables (which is "A Good Thing") then you should be fine. <?php /** Before line 62 */ $crc = ''; $c_len = 0; $unc_len = 0; /** Line 62 ... */ ?> -- Teach a man to fish... NEW? | http://www.catb.org/~esr/faqs/smart-questions.html STFA | http://marc.theaimsgroup.com/?l=php-general&w=2 STFM | http://php.net/manual/en/index.php STFW | http://www.google.com/search?q=php LAZY | http://mycroft.mozdev.org/download.html?name=PHP&submitform=Find+search+plugins

Attachment: [application/pgp-signature] OpenPGP digital signature signature.asc
« previous php.general (#212524) next »