Page 1 of 1

php zip issues

Posted: Wed Aug 13, 2008 2:15 pm
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

Re: php zip issues

Posted: Wed Aug 13, 2008 2:23 pm
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).

Re: php zip issues

Posted: Wed Aug 13, 2008 2:36 pm
by efficacious
ok let me look over that 2sec..

Re: php zip issues

Posted: Wed Aug 13, 2008 2:38 pm
by efficacious
I checked the php.ini file and the extension i uncommented was

php_zip.dll

Re: php zip issues

Posted: Wed Aug 13, 2008 3:26 pm
by efficacious
got it working now.. thanks guys...

just need to restart the pc. *palm-face*

Re: php zip issues

Posted: Wed Aug 13, 2008 3:32 pm
by onion2k
You probably only needed to restart Apache.