Actually, no, you do not need (or want!) SAFE_MODE=on set on your Dreamhost account to run this script. What the script's comments are saying is that if your have SAFE_MODE=on in your PHP configuration, you have to manage those lines.
SAFE-MODE is not "on" at Dreamhost - so you should not need to edit any of those lines for the program to work. You should leave them as they are.