Current location: Hot Scripts Forums » Programming Languages » PHP » Live Stats Mirror for Download server


Live Stats Mirror for Download server

Reply
  #1 (permalink)  
Old 11-29-03, 06:42 AM
actz actz is offline
New Member
 
Join Date: Nov 2003
Posts: 3
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow Live Stats Mirror for Download server

Hi I will soon be opening a large file server and I wanted to have a script that could report back to my users live stats on the server load for the file.

Here is an example of what I want.

http://www.gamershell.com/download_4345.shtml

or

http://www.edgefiles.com/file.x?id=...ler_Release.zip

anyone know what kind of script they use or another that is similar.

thanks

Last edited by actz on 11-29-03 at 01:54 AM.
Reply With Quote
  #2 (permalink)  
Old 12-02-03, 08:32 AM
YourPHPPro's Avatar
YourPHPPro YourPHPPro is offline
Community VIP
 
Join Date: Aug 2003
Posts: 430
Thanks: 0
Thanked 0 Times in 0 Posts
Quote:
Originally Posted by actz
Hi I will soon be opening a large file server and I wanted to have a script that could report back to my users live stats on the server load for the file.
The main question is WHAT type of program are you going to be using to serve the files ? If it is an FTP server - and more specifically, if it is going to be PureFTPd, then there is a program already built to handle that:

Quote:
The pure-ftpwho command provides real-time reports of who's doing what on the FTP server, including bandwidth usage. The result can be a full web page, and the program can also work like a standard CGI program, compatible with any web server. XML and text reports are also available, as well as a compact and easily parsable format for shell scripts.
With a little scripting of the results, you can quickly generate a graph showing how much of your available bandwidth is in use.

Code:
devel# /usr/local/sbin/pure-ftpwho -c
Content-Type: text/html

<div id="ftp-status">
 <table summary="Pure-FTPd server status">
  <thead>
   <tr>
    <th scope="col">PID</th>
    <th scope="col">Account</th>
    <th scope="col">Time</th>
    <th scope="col">State</th>
    <th scope="col" abbr="File">File name</th>
    <th scope="col" abbr="Peer">Remote host</th>
    <th scope="col" abbr="Kb">Kbytes</th>
    <th scope="col" abbr="Local">Local host</th>
   </tr>
  </thead>
  <tbody>
  </tbody>
 </table>
</div>
devel# /usr/local/sbin/pure-ftpwho -v

+------+---------+-------+------+-------------------------------------------+
| PID  |  Login  |For/Spd| What |     File/Remote IP/Size(Kb)/Local IP      |
+------+---------+-------+------+-------------------------------------------+

devel#
http://www.pureftpd.org/

Quote:
Pure-FTPd is actively supported, and it was always designed with security in mind, and the code is always re-audited as new kind of vulnerabilities are discussed. Unlike other popular FTP servers, the number of root exploits found since the very first released version is zero.
Reply With Quote
Reply

Bookmarks


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Download files from another server using script! benweston Script Requests 5 01-17-06 09:29 AM
PHP Live Support? jch02140 General HotScripts Site Discussion 1 07-05-04 12:52 AM
Live Stats Mirror for Download server actz The Lounge 0 11-29-03 12:52 AM
FREE Team Speak server w/ every purchase of a Call of Duty Server twastudios General Advertisements 0 10-31-03 01:14 AM
subdomain to another server. forcer The Lounge 3 07-30-03 01:45 PM


All times are GMT -5. The time now is 06:03 AM.
vBulletin® Copyright ©2000 - 2012, Jelsoft Enterprises Ltd.