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 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]?> <?=$server_load[1]?></td></tr>
<tr><td>Server Memory:</td><td align="right"><?=$memory[0]?> <?=$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