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.

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:
    1
    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:
    16
    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