Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

comment on

( #3333=superdoc: print w/replies, xml ) Need Help??
I'm to develop a "feeds" program for a porn website.

I am hosting a number of video files on my servers. I allow other webmasters to link to my videos from their website, and I charge them by total bandwidth consumed.

You run a website called "XXX Free Perl", and you have signed up on my site to link to videos on my server including one file called "two_monks_one_girl_(HOT!).mpg" . At the end of the month, I need to know how many of your viewers watched my video, and how much bandwidth they used. I would also need to know how much bandwidth another webmaster consumed by linking to the same video.

And finally, I need to know how much total bandwidth was used transferring any specific video of mine so I can kindly pay the producer of the video his royalties. This is probably easier.

Before its pointed out to me, I'll say that the other half of this program would be properly securing who has access to what files and when. I know.

The problem is that I just have no idea where to start. We're running UNIX boxen, so I could use PHP for this if that would work better. The server is probably Apache, but this product is critical and we would switch servers if necessary.

Do any Perl modules accomplish anything similar to this? Can Apache gather this info for me? Thanks ahead for any direction you can offer.


In reply to Tracking bandwidth by Samn

Title:
Use:  <p> text here (a paragraph) </p>
and:  <code> code here </code>
to format your post; it's "PerlMonks-approved HTML":



  • Are you posting in the right place? Check out Where do I post X? to know for sure.
  • Posts may use any of the Perl Monks Approved HTML tags. Currently these include the following:
    <code> <a> <b> <big> <blockquote> <br /> <dd> <dl> <dt> <em> <font> <h1> <h2> <h3> <h4> <h5> <h6> <hr /> <i> <li> <nbsp> <ol> <p> <small> <strike> <strong> <sub> <sup> <table> <td> <th> <tr> <tt> <u> <ul>
  • Snippets of code should be wrapped in <code> tags not <pre> tags. In fact, <pre> tags should generally be avoided. If they must be used, extreme care should be taken to ensure that their contents do not have long lines (<70 chars), in order to prevent horizontal scrolling (and possible janitor intervention).
  • Want more info? How to link or or How to display code and escape characters are good places to start.
Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others musing on the Monastery: (4)
As of 2022-08-12 17:28 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?