using $GLOBALS['base_path']
No, it's not OK to use it directly. Always use base_path() function instead. There are two benefits:


You will not risk accidental change in the original variable, so you will not cause other modules to fail if you'll make a mistake.
If, for whatever reason, Drupal will change way it stores base path, your module will continue to work properly.