Hi,
I'd like to show how many domains I'm hosted on my server, I get this info the control panel for it but want to show it on a page.
I'm guessing it's something similar to the snippet below which shows how long the server has been up.
<?php
$uptime = exec("expr $(awk '{print $1}' < /proc/uptime | awk -F. '{print $1}' ) / 86400");
print("<b>Server has been up $uptime days</b>");
?>
Problem is I'm not sure how. If anyone could offer advice, it would be much apprciated.
TIA.
A