Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 2 of 2
  1. #1
    Registered User
    Join Date
    May 2007
    Posts
    3

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

    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:

    Warning: file_get_contents(http://...@vetax-hosting.in:2082/fro...x3/status.html) [function.file-get-contents]: failed to open stream: HTTP request failed! HTTP/1.0 401 Access Denied Still Working in /home/jubster/public_html/server.php on line 103
    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 Code:
    <?
    $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. #2
    Member
    Join Date
    Jun 2007
    Posts
    41

    Default

    I experience the same issue, if someone could help us ? thanks

    dominique

Similar Threads & Tags
Similar threads

  1. User/Pass Capture
    By alinford in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-01-2010, 07:55 PM
  2. Wrong user/pass just for one domain
    By ExYu in forum New User Questions
    Replies: 4
    Last Post: 01-09-2010, 06:24 AM
  3. Problems loggin into Horde after latest upgrade
    By onaweb in forum cPanel and WHM Discussions
    Replies: 10
    Last Post: 04-21-2006, 01:58 AM
  4. email loggin per domain
    By wondering in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 05-24-2004, 09:24 AM
  5. log into cpanel via web without user:pass@domain:2082
    By 662C in forum cPanel and WHM Discussions
    Replies: 8
    Last Post: 08-29-2003, 09:55 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube