PHP for Mac OSX – part 2
Following on from the instructions to set up PHP on Apache, targeting the webserver correctly is greatly helped by reading info.php correctly.
The key to where to place documents is the _SERVER["DOCUMENT_ROOT"] variable which points to /Library/WebServer/Documents
Moving the folder from /~user to the document root immediately brings the right result. A PHP website is rendered onscreen with only a few image locations to tweak.


