| View previous topic :: View next topic | 
	
	
		| Author | Message | 
	
		| josepi -
 
 
 Joined: 20 Jul 2006
 Posts: 30
 
 
 | 
			
				|  Posted: Tue Sep 19, 2006 12:17 pm    Post subject: how to get the current Host  info.. |   |  
				| 
 |  
				| how can i know how many site1.com Transferred Data have been used just using PHP or something without abyss panel |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| cmxflash -
 
 
 Joined: 11 Dec 2004
 Posts: 872
 
 
 | 
			
				|  Posted: Tue Sep 19, 2006 1:34 pm    Post subject: |   |  
				| 
 |  
				| 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 |     | 
	
		|  | 
	
		| josepi -
 
 
 Joined: 20 Jul 2006
 Posts: 30
 
 
 | 
			
				|  Posted: Tue Sep 19, 2006 5:00 pm    Post subject: |   |  
				| 
 |  
				| right  thanks , but how can it show me just the abyss output? |  | 
	
		| Back to top |     | 
	
		|  | 
	
		| cmxflash -
 
 
 Joined: 11 Dec 2004
 Posts: 872
 
 
 | 
			
				|  Posted: Tue Sep 19, 2006 5:08 pm    Post subject: |   |  
				| 
 |  
				| 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 |     | 
	
		|  | 
	
		| josepi -
 
 
 Joined: 20 Jul 2006
 Posts: 30
 
 
 | 
			
				|  Posted: Tue Sep 19, 2006 7:58 pm    Post subject: |   |  
				| 
 |  
				| 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 |     | 
	
		|  | 
	
		| cmxflash -
 
 
 Joined: 11 Dec 2004
 Posts: 872
 
 
 | 
			
				|  Posted: Wed Sep 20, 2006 6:41 am    Post subject: |   |  
				| 
 |  
				| 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 |     | 
	
		|  | 
	
		| aprelium -
 
 
 Joined: 22 Mar 2002
 Posts: 6800
 
 
 | 
			
				|  Posted: Wed Sep 20, 2006 11:56 am    Post subject: |   |  
				| 
 |  
				| josepi, 
 The limit of these stat fields are 2^64 bytes = 17179869184 GB.
 _________________
 Support Team
 Aprelium - http://www.aprelium.com
 |  | 
	
		| Back to top |       | 
	
		|  | 
	
		|  |