how to get the current Host info..

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


Joined: 20 Jul 2006
Posts: 30

PostPosted: Tue Sep 19, 2006 12:17 pm    Post subject: how to get the current Host info.. Reply with quote

how can i know how many site1.com Transferred Data have been used just using PHP or something without abyss panel
Back to top View user's profile Send private message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Tue Sep 19, 2006 1:34 pm    Post subject: Reply with quote

Link.

You may use the PHP variable $_SERVER to get information about the current host.

You can also use this script to find out what the $_SERVER array contains:

Code:
<?php
header("content-type: text/plain");
foreach($_SERVER as $name => $content) {
echo "Name: $name\nContent: $content\n\n";
}
?>


Last edited by cmxflash on Tue Oct 24, 2006 7:36 pm; edited 1 time in total
Back to top View user's profile Send private message
josepi
-


Joined: 20 Jul 2006
Posts: 30

PostPosted: Tue Sep 19, 2006 5:00 pm    Post subject: Reply with quote

right thanks , but how can it show me just the abyss output?
Back to top View user's profile Send private message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Tue Sep 19, 2006 5:08 pm    Post subject: Reply with quote

For example, you could use this script to write out how many requests the server has served:

Code:
<?php echo $_SERVER['X_ABYSS_STATS_SERVER_TOTAL']; ?>


Just change X_ABYSS_STATS_SERVER_TOTAL to whatever you want to be written out.
Back to top View user's profile Send private message
josepi
-


Joined: 20 Jul 2006
Posts: 30

PostPosted: Tue Sep 19, 2006 7:58 pm    Post subject: Reply with quote

ok i finally doit , i have a meter that shows me the bandwidth from any Host , but

does abyss auto reset bandwidth or something when i restart my pc ? or i restart abyss or have any limit like 2 gb of bandwidth per server

because i just create a new host on my abyss x2 , and when i see the bandwidth it show's me 60 mb but before it show's 1640 mb what happens :S
Back to top View user's profile Send private message
cmxflash
-


Joined: 11 Dec 2004
Posts: 872

PostPosted: Wed Sep 20, 2006 6:41 am    Post subject: Reply with quote

No, Abyss does not reset the server statictic when restarted. Are you sure you didn't reset it manually in the console?
Back to top View user's profile Send private message
aprelium
-


Joined: 22 Mar 2002
Posts: 6800

PostPosted: Wed Sep 20, 2006 11:56 am    Post subject: Reply with quote

josepi,

The limit of these stat fields are 2^64 bytes = 17179869184 GB.
_________________
Support Team
Aprelium - http://www.aprelium.com
Back to top View user's profile Send private message Send e-mail
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