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.

Problems while loggin in using user:pass@domain:2082

Discussion in 'cPanel Developers' started by thha, May 30, 2007.

  1. thha

    thha Registered

    Joined:
    May 30, 2007
    Messages:
    3
    Likes Received:
    0
    Trophy Points:
    1
    Hi guys!

    I've got a script that reads the current Server Load and Server Memory out of the status.html file of cPanel.

    Everything worked great in version 10 cPanel but now my provider upgraded to version 11 of cPanel.

    Now i'm always getting the following error:

    I also tried the Status Script from http://www.josheli.com/vox/ but it didn't work either.

    Did you change something with the login in version 11?

    The code which tries to get the content from the status.html is the following:

    PHP:
    <?
    $cpanel_login file_get_contents("http://user:pass@domain:2082/frontend/x3/status.html");
    $serverstat explode("<table align=center border=1 class=tdshade2>"$cpanel_login);
    $serverstat explode("</table>"$serverstat[1]);
    $serverstat $serverstat[0];

    $server_load get_status($serverstat"Server Load");
    $memory get_status($serverstat"Memory Used");
        
    ?>  
        <tr><td>Server Load:</td><td align="right"><?=$server_load[0]?>&nbsp;&nbsp;<?=$server_load[1]?></td></tr>
        <tr><td>Server Memory:</td><td align="right"><?=$memory[0]?>&nbsp;&nbsp;<?=$memory[1]?></td></tr>
    <? } ?>
    </table>
    Help would be really appreciated :)

    (Changed the user, pass and domain because it's not important to let users view it ^^)

    Yours
    Tom
     
  2. dom974

    dom974 Active Member

    Joined:
    Jun 24, 2007
    Messages:
    41
    Likes Received:
    0
    Trophy Points:
    6
    I experience the same issue, if someone could help us ? thanks

    dominique
     
Loading...
Similar Threads - Problems while loggin
  1. htmldesign
    Replies:
    4
    Views:
    499

Share This Page