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!

/scripts/ question

Discussion in 'General Discussion' started by GeekPatrolMille, Jan 16, 2006.

  1. GeekPatrolMille

    GeekPatrolMille Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    McKinney, Texas, USA
    Some time ago, I wrote a specialized billing interface using Excel to parse a lot of WHM screens and Access to automagically generate invoices. It works quite well but I am now trying to do the same thing from a php script and a cron job. I have everything I need in one tidy mysql database except for Parked Domains information.

    I am familiar with the /scripts/listsubdomains script to gather a list of an accounts registered subdomains. I am interested in finding a similar function for Parked Domains. I have poked around and found some data files I might can parse the parked domain info from but before I reinvent the wheel, I was hoping this is a script someplace on the cpanel server.

    I am also familiar with the accounting functions include and class for php, which I am using for a few items, it just does not provide Parked Domain data.

    I would even be interested in knowing which data file cpanel keeps track of this info so if I do need to write my own script, I know I am grabbing data from the best place.

    Thanks to anyone who can point me in the right direction.

    -greg
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,460
    Likes Received:
    21
    Trophy Points:
    463
    Location:
    Go on, have a guess
    Not sure about a script. The data is, however, stored in /var/cpanel/users/*
     
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. GeekPatrolMille

    GeekPatrolMille Well-Known Member

    Joined:
    Mar 12, 2004
    Messages:
    84
    Likes Received:
    0
    Trophy Points:
    156
    Location:
    McKinney, Texas, USA
    I had found that directory too... I suppose I will write the parsing script to extract the data I need...

    Thanks chirpy!!!

    -greg
     
    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