warrenz
08-26-2008, 10:05 PM
I want my clients to go to the Awstats tool directly rather than logging into cpanel then opening the script. For some, I have manually copied the URL then place it in a meta refresh tag of an index.php file and placed the file in a folder called stats.
For each I use the same URL but change the domain to match. This method is quite tedious so I want to use PHP to identify each client's domain, just cannot find the solution. Can anyone assist with this? thanks
This is what I currently use
<?php
echo "<meta http-equiv='refresh' content='0; URL=http://myhosting.com:2082/awstats.pl?config=website.com'>"
?>
This is what I vision
<?php
echo "<meta http-equiv='refresh' content='0; URL=http://myhosting.com:2082/awstats.pl?config=['Domain']'>"
?>
For each I use the same URL but change the domain to match. This method is quite tedious so I want to use PHP to identify each client's domain, just cannot find the solution. Can anyone assist with this? thanks
This is what I currently use
<?php
echo "<meta http-equiv='refresh' content='0; URL=http://myhosting.com:2082/awstats.pl?config=website.com'>"
?>
This is what I vision
<?php
echo "<meta http-equiv='refresh' content='0; URL=http://myhosting.com:2082/awstats.pl?config=['Domain']'>"
?>
