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.

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:
    1
    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:
    2
    Trophy Points:
    18
    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.
     
Loading...

Share This Page