tags:

views:

111

answers:

2

We can enable php_zip by uncomment it in php.ini as follows:

;extension=php_zip.dll

How to do it programmably?

I'm using PHP5.3

+5  A: 

http://php.net/manual/en/function.dl.php

dl — Loads a PHP extension at runtime

Why do you want to do it pragmatically though?

The Pixel Developer
Removed since 5.3
Chacha102
Yes, in some SAPI's.
The Pixel Developer
Is there a solution that will work in all SAPI?
Yeah, load it via the php.ini
The Pixel Developer
A: 

edit: ok I was sooo wrong, see The Pixel Developer response

mathroc