Re: zippidity do duh!

From: Date: Wed, 09 Jul 2008 22:37:42 +0000
Subject: Re: zippidity do duh!
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-276542@lists.php.net to get a copy of this message
On Wed, Jul 9, 2008 at 3:19 PM, tedd <tedd.sperling@gmail.com> wrote: > At 2:00 PM -0600 7/9/08, Nathan Nobbe wrote: > >> >> >> if(class_exists('ZipArchive', false)) >> $zip = new ZipArchive(); >> else >> trigger_error('class ZipArchive does not exist!', E_USER_NOTICE); >> >> -nathan >> > > It works, (thanks) but no error is thrown if it's not there. are you saying the trigger_error() isnt getting hit? could be an ini / .htaccess etc. issue. give die('class ZipArchive does not exist!'); a try or check the error_reporting configuration value in your php environment. -nathan

« previous php.general (#276542) next »