Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Find user homedir

Discussion in 'cPanel Developers' started by tecwithquestion, Sep 6, 2017.

Tags:
  1. tecwithquestion

    tecwithquestion Well-Known Member

    Joined:
    Oct 20, 2014
    Messages:
    56
    Likes Received:
    1
    Trophy Points:
    8
    cPanel Access Level:
    Root Administrator
    Hello

    In x3 I was using below code to find user's home dir
    <cpanel PHP="loadvars()">
    $homedir = $_CPANEL['USERDATA']['home'];


    Can someone please tell how can I find user homedir using live.php file ?

    Thanks
     
    #1 tecwithquestion, Sep 6, 2017
    Last edited: Sep 6, 2017
  2. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    38,080
    Likes Received:
    1,364
    Trophy Points:
    363
    cPanel Access Level:
    Root Administrator
Loading...

Share This Page