How to check the version of PHP ?

To verify the update is working create a simple testphp.php in your www directory with the following source code:

and open it in a web browser. The new PHP version should be reflected at the top of the page.


ssh into the server or run the follwing command in terminal

php -v

Show hidden files Mac OS X 10.7 Lion and 10.8 Mountain Lion

To enable hidden files/folders in finder windows:

Open Finder
Open the Utilities folder
Open a terminal window
Copy and paste the following line in:

defaults write AppleShowAllFiles YES

Press return
Now hold ‘alt’ on the keyboard and right click on the Finder icon
Click on Relaunch
You should find you will now be able to see any hidden files or folders. One you are done, perform the steps above however, replace the terminal command in step 4 with:

defaults write AppleShowAllFiles NO