Add check for open_basedir and safe_mode
Copyright 2014
Cleanup doc blocks