It's still not cool to expose another's server and their users to potential exploits.
Actually, Atropos7 gave you some very good help.
These "boards" primary purpose is to facilitate DreamHost users with DreamHost related issues, but all are welcome.
The "General Troubleshooting" Forum might not have been the proper place for a "Programming" issue that is not related to DreamHost (if you read the Forum descriptions). People are very likely to assume that you are hosting on DreamHost and, particularly with PHP, where the version and installation in use can have a lot to do with how PHP works, you might get "DreamHost" specific answers, rather than generally applicable information.
In this instance, Atropos7's warning, and the information he provided as to how to do it "properly", is universally correct and applicable, so it worked out well for you!
Oh well, good luck!