src/Rocketeer/Services/Environment/Modules/HomePathfinder.php
public static function getUserHomeFolder()
    {
        // Get home folder if available (Unix)
        if (!empty($_SERVER['HOME'])) {
            return $_SERVER['HOME'];
            // Else use the home drive (Windows)
        } elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) {
            return $_SERVER['HOMEDRIVE'].$_SERVER['HOMEPATH'];
        }

        throw new Exception('Cannot determine user home directory.');
    }
public static function getUserHomeFolder()
    {
        // Get home folder if available (Unix)
        if (!empty($_SERVER['HOME'])) {
            return $_SERVER['HOME'];
            // Else use the home drive (Windows)
        } elseif (!empty($_SERVER['HOMEDRIVE']) && !empty($_SERVER['HOMEPATH'])) {
            return $_SERVER['HOMEDRIVE'].$_SERVER['HOMEPATH'];
        }

        throw new Exception('Cannot determine user home directory.');
    }
public static function getUserHomeFolder ( ) { // Get home folder if available (Unix) if ( ! empty ( $ _SERVER [ 'HOME' ] ) ) { return $ _SERVER [ 'HOME' ] ; // Else use the home drive (Windows) } elseif ( ! empty ( $ _SERVER [ 'HOMEDRIVE' ] ) && ! empty ( $ _SERVER [ 'HOMEPATH' ] ) ) { return $ _SERVER [ 'HOMEDRIVE' ] . $ _SERVER [ 'HOMEPATH' ] ; } throw new Exception ( 'Cannot determine user home directory.' ) ; }
Get the path to the users home folder.

@throws Exception

@return string
Get the path to the users home folder .