Exporting stats.chl to a dynamic php or html page

 
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions
View previous topic :: View next topic  
Author Message
TCG503
-


Joined: 13 Dec 2004
Posts: 8

PostPosted: Mon Dec 13, 2004 11:05 am    Post subject: Exporting stats.chl to a dynamic php or html page Reply with quote

Can this be done? If So How. I would like to show users how much banwidth my server is using so they will stop bitching about download speeds. I transfer about 2 GB per day (and that's on a good day.

--Edit
On Second Thought seeing as the beta is out and chls have been eliminated is there anyway to export data from the stats page to a dynamic html/php file available to the public?

--
Tyler
Back to top View user's profile Send private message
Glitch2082
-


Joined: 02 Dec 2004
Posts: 194

PostPosted: Tue Dec 14, 2004 2:14 am    Post subject: Reply with quote

I havn't used beta but im sure the stats (as well as the other control files) are outside the htdocs, and anything within the htdocs can't be viewed unless you know your way around 'bad urls'. There might be a way though, ill look into it and see if I can find something .
_________________
int main() {
cout << "Im Pro Apache";
cin.get();
}
Back to top View user's profile Send private message Send e-mail
admin
Site Admin


Joined: 03 Mar 2002
Posts: 1332

PostPosted: Tue Dec 14, 2004 12:57 pm    Post subject: Re: Exporting stats.chl to a dynamic php or html page Reply with quote

TCG503,

Great suggestion. We'll try to make this information available in SSI variables.
Back to top View user's profile Send private message
TCG503
-


Joined: 13 Dec 2004
Posts: 8

PostPosted: Tue Dec 14, 2004 1:15 pm    Post subject: WOOOT! Reply with quote

WOOOT! I made a suggestion and didn't even realize it.
Back to top View user's profile Send private message
GagnierA
-


Joined: 18 May 2004
Posts: 71
Location: Windsor, Ontario, Canada

PostPosted: Wed Dec 29, 2004 8:56 pm    Post subject: Reply with quote

I've also been trying to figure this out, a number of times...for the chl files, do they use an internal language or something? I guess I'll just give up (again..lol) for now, and wait for the info on the SSI stuff. :) I didn't even think of asking, but maybe that's because I now use an external program and got the author to add in a few features that would make bandwidth reporting simpler and more dynamic....

check out CS Fire Monitor at http://www.croftssoftware.com/ it's a cool little program and it's (of course) completely free :)
Back to top View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Thu Dec 30, 2004 1:09 am    Post subject: Reply with quote

GagnierA wrote:
I guess I'll just give up (again..lol) for now, and wait for the info on the SSI stuff. :)

You shouldn't give up :-) We have taken into account the above suggestion.

We have already added many new SSI variables to the new Beta of Abyss Web Server 2.0 (Beta 3). Most of this SSI variables are related to statistics and provide a nice and a clean way to display the statitistics in a SSI page or via a script.

Look at the updated documentation of Beta 3 in the "CGI Variables" section for more information.
_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
GagnierA
-


Joined: 18 May 2004
Posts: 71
Location: Windsor, Ontario, Canada

PostPosted: Thu Dec 30, 2004 1:17 pm    Post subject: Reply with quote

ok, will do. Thanks alot! :D

EDIT: Tried it out, got it working...sorta. It's only seeming to recognize the SSI directives when I have the file extension set to the SSI file extensions (stm shtm or shtml) and not in other file types, such as, php or any other. Is there something I need to do in order to get the directives noticed in all interpretable types? Also, how would I go about passing the uptime variable to a script to display it with DD:HH:MM:SS?

Sorry for the stupid questions, but I'm not really familiar with using these variables....my knowledge of them goes as far as this post signifies...heh
Back to top View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
TCG503
-


Joined: 13 Dec 2004
Posts: 8

PostPosted: Thu Dec 30, 2004 11:27 pm    Post subject: Reply with quote

OK so what exactly is the correct syntax for putting the code for the stats in a page i.e. php, shtml?
Back to top View user's profile Send private message
GagnierA
-


Joined: 18 May 2004
Posts: 71
Location: Windsor, Ontario, Canada

PostPosted: Fri Dec 31, 2004 7:10 am    Post subject: Reply with quote

All I did was put this:

<!--#echo var="X_ABYSS_STATS_SERVER_OUTPUT"-->

Along with other directives, replacing the variable with what I wanted to show into a file with the extension of .stm....I'm not sure how to do it in a php file though, but I guess if you just did an include statement that that should theoretically work....but I haven't tried it yet.
Back to top View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
aprelium-beta
-


Joined: 24 Jun 2004
Posts: 383

PostPosted: Fri Dec 31, 2004 3:03 pm    Post subject: Reply with quote

GagnierA wrote:
All I did was put this:

<!--#echo var="X_ABYSS_STATS_SERVER_OUTPUT"-->

Along with other directives, replacing the variable with what I wanted to show into a file with the extension of .stm....I'm not sure how to do it in a php file though, but I guess if you just did an include statement that that should theoretically work....but I haven't tried it yet.

In PHP or any scripting language, you should get these variables from the environment.
For example:
Code:

<?php
     echo $_ENV['X_ABYSS_STATS_SERVER_OUTPUT'];
?>

_________________
Beta Testing Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
sizzla
-


Joined: 26 Jan 2005
Posts: 3

PostPosted: Fri Jan 28, 2005 12:35 am    Post subject: Reply with quote

but this aint working in the current version, right? v1.2.3.0
your talking about the new, beta version?

if so, will it come out soon?
greets
Back to top View user's profile Send private message
Anonymoose
-


Joined: 09 Sep 2003
Posts: 2192

PostPosted: Fri Jan 28, 2005 12:40 am    Post subject: Reply with quote

The beta version has been available for months. Look in the section marked Beta at the bottom of the forum for a download link...
Back to top View user's profile Send private message
GagnierA
-


Joined: 18 May 2004
Posts: 71
Location: Windsor, Ontario, Canada

PostPosted: Fri Jan 28, 2005 6:48 am    Post subject: Reply with quote

sizzla wrote:
but this aint working in the current version, right? v1.2.3.0
your talking about the new, beta version?

if so, will it come out soon?
greets


You've probably downloaded and installed the beta version already, but yes, that works in v1.2.3.0....that's what I was using at the time of the post.

:)
Back to top View user's profile Send private message Send e-mail Yahoo Messenger MSN Messenger
vhsorless
-


Joined: 25 Jan 2005
Posts: 45

PostPosted: Wed Feb 02, 2005 10:03 am    Post subject: Reply with quote

GagnierA wrote:
I've also been trying to figure this out, a number of times...for the chl files, do they use an internal language or something? I guess I'll just give up (again..lol) for now, and wait for the info on the SSI stuff. :) I didn't even think of asking, but maybe that's because I now use an external program and got the author to add in a few features that would make bandwidth reporting simpler and more dynamic....

check out CS Fire Monitor at http://www.croftssoftware.com/ it's a cool little program and it's (of course) completely free :)


Hey, this is cool!!! I hope you read my reply. I'd love to see how your code looks on your page and maybe find out what code you used (for the extra features).
_________________
I.P. Daily,
VHS Connoisseur
Back to top View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    Aprelium Forum Index -> General Questions All times are GMT + 1 Hour
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB phpBB Group