function drush_server_home

8.0.x drush_server_home()
6.x drush_server_home()
7.x drush_server_home()
3.x drush_server_home()
4.x drush_server_home()
5.x drush_server_home()
master drush_server_home()

Return the user's home directory.

8 calls to drush_server_home()
drush_directory_cache in includes/
drush_preflight_backup_dir in includes/
Decide where our backup directory should go
drush_sitealias_alias_path in includes/
Return the array of paths where alias files are searched for.
pm_drush_pm_download_destination_alter in commands/pm/
Implementation of hook_drush_pm_download_destination_alter().
_drush_config_file in includes/
Return a list of possible drushrc file locations.

... See full list


includes/, line 1367
Functions used by drush to query the environment and setting the current configuration.


function drush_server_home() {
  $home = NULL;
  // $_SERVER['HOME'] isn't set on windows and generates a Notice.
  if (!empty($_SERVER['HOME'])) {
    $home = $_SERVER['HOME'];
  elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) {
    // home on windows
  return $home;