I'm afraid I don't know what to say. Phpinfo view is open zip Ah
View PHP official documentation see that everyone else is directly new.
$zip = new Ziparchive;
This class is not an extension installed directly can be used
thinkphp3.2.3
Public function Tozip () { $zip =new ziparchive; Dump ($zip); }
I'm not suggesting I can't find the class amount.
:(
Class ' home\controller\ziparchive ' not found
Wrong location
file:d:\wamp\www\apps\home\controller\picturecontroller.class.php line:244
I see in the PHP documentation that the requirements are
(PHP 5 >= 5.2.0, PECL zip >= 1.1.0)
It's supposed to be available. 5.5.12 also integrates the given example is also direct new's Ask me where's the problem?
Reply to discussion (solution)
This is because of the reason you used the namespace
The Ziparchive class is a PHP built-in class and not in Home\controller
When you use it, add \
$zip =new \ziparchive;
You can do it.
This is because of the reason you used the namespace
The Ziparchive class is a PHP built-in class and not in Home\controller
When you use it, add \
$zip =new \ziparchive;
You can do it.
Thank you I also just want to understand ~ Thank you very much reply ~