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!

i need some help!!

Discussion in 'General Discussion' started by fras, Apr 19, 2006.

  1. fras

    fras Registered

    Joined:
    Mar 28, 2004
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    151
    Hi,
    I made PHP programing to manage the designing site and there is some offer in it
    Any way.. I need putting in this program some statics from cpanel
    like Disck space , bandowitn used ... etc.

    Is there someone can help me about how can i do that?

    Thanks to evrybody
     
  2. elleryjh

    elleryjh Well-Known Member

    Joined:
    Apr 12, 2003
    Messages:
    479
    Likes Received:
    0
    Trophy Points:
    166
    you can use the file() function to call on cpanel...

    PHP:
    <?
        
    $cp file("http://$cpuser:$cppass@localhost:2082/frontend/x/somepage.html");
    ?>
    To simplfy things in PHP, you can create a new page in the cPanel directory with just the information you need.

    I'd be willing to help you with the specifics for some compensation - PM me if you're interested.
     
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