php zip issues

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Post Reply
efficacious
Forum Newbie
Posts: 5
Joined: Wed Aug 13, 2008 2:13 pm

php zip issues

Post by efficacious »

Hello everyone,

I'm trying to expiriment with the ZipArchive functions and I keep getting this error

Fatal error: Class 'ZipArchive' not found

I've installed the DLL and my phpINFO page shows that zip is enabled.

This is what phpinfo says:

ZLib Support enabled
Stream Wrapper support compress.zlib://
Stream Filter support zlib.inflate, zlib.deflate
Compiled Version 1.2.3
Linked Version 1.2.3

if that helps

does anyone know how to fix this?

or could you point me towards something else to use.

I mainly just need to create zips thankx

any ideas?

thanks all,
eff
nowaydown1
Forum Contributor
Posts: 169
Joined: Sun Apr 27, 2008 1:22 am

Re: php zip issues

Post by nowaydown1 »

Hi eff,

I would double check your setup to ensure that you're loading the php_zip extension (http://us3.php.net/manual/en/ref.zip.php). The dump portion you referred to from your phpinfo() looks like it's referencing zlib stuff (gzfile, gzopen, etc - http://us3.php.net/zlib).
efficacious
Forum Newbie
Posts: 5
Joined: Wed Aug 13, 2008 2:13 pm

Re: php zip issues

Post by efficacious »

ok let me look over that 2sec..
efficacious
Forum Newbie
Posts: 5
Joined: Wed Aug 13, 2008 2:13 pm

Re: php zip issues

Post by efficacious »

I checked the php.ini file and the extension i uncommented was

php_zip.dll
efficacious
Forum Newbie
Posts: 5
Joined: Wed Aug 13, 2008 2:13 pm

Re: php zip issues

Post by efficacious »

got it working now.. thanks guys...

just need to restart the pc. *palm-face*
User avatar
onion2k
Jedi Mod
Posts: 5263
Joined: Tue Dec 21, 2004 5:03 pm
Location: usrlab.com

Re: php zip issues

Post by onion2k »

You probably only needed to restart Apache.
Post Reply