Re: zippidity do duh!
| From: | tedd | Date: | Wed, 09 Jul 2008 22:53:25 +0000 |
| Subject: | Re: zippidity do duh! | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-276543@lists.php.net to get a copy of this message | ||
At 4:37 PM -0600 7/9/08, Nathan Nobbe wrote:
On Wed, Jul 9, 2008 at 3:19 PM, tedd <<mailto:tedd.sperling@gmail.com>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. -nathanYep, while the trigger_error() is being hit, nothing is being shown. The program goes right past it without failing and without anything happening. In other words, it acts the same as a //comment. Cheers, tedd -- ------- http://sperling.com http://ancientstones.com http://earthstones.com