I have several versions of PHP on my Mac. Problem is, whenever I try to install new libraries, I'm not sure which version I'm installing them to. I'm using the command line on Mac OSX, and I read somewhere that you can change which PHP version you're installing libs to, but I can't figure out how to do it. How do I tell which PHP version I'm dealing with on command line, and install libraries/modules only to that version?
migrated from stackoverflow.com Dec 5 '12 at 1:42
This question came from our site for professional and enthusiast programmers.