Upgrade PHP on my mac OS X 10.5
I'm running on OS X 10.5 (Leopard), and I want to update the current version of PHP 5.2.15 (cli) that I have to PHP 5.3 or even 5.4.
The matter is that I need to run some PHP snippets in my terminal, and the version that i have (PHP 5.2.15 (cli) (built: May 5 2011 18:56:00)) can't allow some functions. That's why I need to upgrade my current version.
I searched on the web, but didn't find anything. How can I do it ?
Thanks !
Solution 1:
Step 1. install Homebrew
Step 2. install Homebrew-php
Step 3. install the php version you want
Step 4. happy php coding.
Alternatively, if you can't get this working (shouldn't be a problem but just in case), you can try using MAMP.