daled Posted March 16, 2009 Share Posted March 16, 2009 How can I add the php extension that writes zip files to my MAMP configuration? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 16, 2009 Share Posted March 16, 2009 http://us2.php.net/manual/en/zip.installation.php Quote Link to comment Share on other sites More sharing options...
daled Posted March 16, 2009 Author Share Posted March 16, 2009 I did that and then tried the example code, but it didn't work. I read somewhere about recompiling PHP. Is that something I should do and how would I go about doing that? Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 16, 2009 Share Posted March 16, 2009 ah...Mac...from what I read it's a pain. http://forum.webedition.de/phpBB/viewtopic.php?f=2&t=6712 you need to do a custom compile of PHP, which will require the osx developer tools Quote Link to comment Share on other sites More sharing options...
daled Posted March 16, 2009 Author Share Posted March 16, 2009 I'm so sorry. I meant to say WAMP. Quote Link to comment Share on other sites More sharing options...
rhodesa Posted March 16, 2009 Share Posted March 16, 2009 http://www.wampserver.com/phorum/read.php?2,41236 Click the WAMP icon in the System Tray, then PHP Settings - PHP Extensions, scroll down and click php_zip to select it. The icon will turn yellow momentarily but should then become white. Quote Link to comment Share on other sites More sharing options...
daled Posted March 16, 2009 Author Share Posted March 16, 2009 Sorry, if I'm being a nuisance not mentioning all the details. I did a manual installation so I had to download php_zip.dll from php.net and then add into my php.ini 'extension=php_zip.dll'. As far as I know, that's all I had to do as that's all that was on the php.net link you gave me. I put the dll in the path to my extensions and restarted Apache. I then ran some of the examples and got function undefined errors. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.