UrlGuy
03-28-2005, 11:48 AM
Hi,
Im trying to let some "VIP" users be able to view Awstats for my page, which is a stat-system in cPanel.
I can query the page and all, but when I am about to recieve the results I get this:
HTTP/1.0 200 OK Server: cpsrvd/10.0.0 Connection: close Content-type: text/html; charset= Cache-Control: public Last-Modified: Mon Mar 28 15:43:52 2005 Expires: Mon Mar 28 15:43:52 2005 Statistics for poetzsch.org (2005-03) Your browser does not support frames. You must set AWStats UseFramesWhenCGI parameter to 0 to see your reports.
Normally the stats system is a feature rich page with several images, I am not sure how to let my PHP script open this page as it gives me that above error.
This is the script I use: (stats.php)
<?php
$request = "/awstats.pl?config=$domain&lang=en";
$result = cprq($host,$port,$cpanel_username,$cpanel_password,$request);
$show = strip_tags($result);
echo "$show<br><br>";
function cprq($host,$port,$ownername,$passw,$request) {
global $email,$password;
}
?>
All I need is, some user to request this page stats.php and I want it to show the stats, as its shown in cPanel.
Hope anyone can help me with this advanced task
Thanks in advance,
Kind Regards ~UrlGuy
Im trying to let some "VIP" users be able to view Awstats for my page, which is a stat-system in cPanel.
I can query the page and all, but when I am about to recieve the results I get this:
HTTP/1.0 200 OK Server: cpsrvd/10.0.0 Connection: close Content-type: text/html; charset= Cache-Control: public Last-Modified: Mon Mar 28 15:43:52 2005 Expires: Mon Mar 28 15:43:52 2005 Statistics for poetzsch.org (2005-03) Your browser does not support frames. You must set AWStats UseFramesWhenCGI parameter to 0 to see your reports.
Normally the stats system is a feature rich page with several images, I am not sure how to let my PHP script open this page as it gives me that above error.
This is the script I use: (stats.php)
<?php
$request = "/awstats.pl?config=$domain&lang=en";
$result = cprq($host,$port,$cpanel_username,$cpanel_password,$request);
$show = strip_tags($result);
echo "$show<br><br>";
function cprq($host,$port,$ownername,$passw,$request) {
global $email,$password;
}
?>
All I need is, some user to request this page stats.php and I want it to show the stats, as its shown in cPanel.
Hope anyone can help me with this advanced task
Thanks in advance,
Kind Regards ~UrlGuy
