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.

PHP remote access functions question.

Discussion in 'General Discussion' started by Shino, Oct 16, 2005.

  1. Shino

    Shino Registered

    Joined:
    Oct 16, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi,

    Im new to CPanel, and I have just recently found the online documentation on the php remote access functions. But they are not detailed enough.

    I need to find out what is the IP associated to the domain for an account. How can I grab that information from WHM CPanel through PHP?

    Thanks.
     
  2. Murtaza_t

    Murtaza_t Well-Known Member

    Joined:
    Jan 24, 2005
    Messages:
    476
    Likes Received:
    0
    Trophy Points:
    16
    Location:
    Earth
    cPanel Access Level:
    Website Owner
    Well I suppose that WHM list accounts function does show the IP addresses with the domains but you can also view it at :

    Main >> IP Functions >> Show IP Address Usage
     
  3. Shino

    Shino Registered

    Joined:
    Oct 16, 2005
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    In the CPANEL Remote access documentation you have listaccts for PHP but it only shows the domain and the username of the account and the reseller account, but not the ip address of the domain.

    Anyone else?
     
  4. Carlozmozdzierz

    Carlozmozdzierz Registered

    Joined:
    Feb 17, 2006
    Messages:
    1
    Likes Received:
    0
    Trophy Points:
    1
    $accounts = whmreq("/scripts/fetchcsv",$host,$user,$accesshash,$usessl);



    this gives you the fetchcsv, which you can split by commas, there is everything in there.
     
Loading...

Share This Page