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!

Create a list of all domains

Discussion in 'General Discussion' started by efoiv, Jan 2, 2008.

  1. efoiv

    efoiv Member

    Joined:
    Dec 19, 2007
    Messages:
    12
    Likes Received:
    0
    Trophy Points:
    51
    Is there a way I could use PHP to make a list of all the domains of all accounts running on my server?

    I'm running a PHP page that when loaded will show the sites status of each domain but at this time I have to hand enter each new domain.... Id like to automate this a bit and have it load up all the domains.

    Cheers
    Edward
     
  2. WebScHoLaR

    WebScHoLaR Well-Known Member

    Joined:
    Dec 14, 2005
    Messages:
    511
    Likes Received:
    3
    Trophy Points:
    168
    Location:
    Planet Earth
    You can use the WHM API to get a CSV of accounts and parse it to get the domain names. The CSV can be generated manually from WHM > Account Functions > List Accounts.
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
Loading...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice