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? Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/ 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 Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/#findComment-785941 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? Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/#findComment-785998 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 Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/#findComment-786009 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. Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/#findComment-786098 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. Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/#findComment-786101 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. Link to comment https://forums.phpfreaks.com/topic/149673-adding-zip-extension/#findComment-786126 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.