![]() Topic awaiting preservation: bandwidth limitation script (Page 1 of 1) |
|
---|---|
Paranoid (IV) Inmate From: Northumberland, England |
![]() ok, my site is a gallery site for many peoples work, including movie projects. My new sponsor has given me a 5GB per month limit on bandwidth, after which I will need to pay for every MB over. I dislike this and have asked them if they could just cap it so that a 404 type page is displayed saying my bandwidth has been exceeded, they said no. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() What I would do is just put all your big bandwidth hogging projects on one page (or a few pages) and then write a small php script for the page that checks your usage and then either display's or doesn't display the page based on where you are at for the month. |
Paranoid (IV) Inmate From: Northumberland, England |
![]() what file would i need to parse to get my usage stats? i asked a guy about using raw log files if i have access to them and he laughed at me and said my server would fry. |
Paranoid (IV) Inmate From: California |
![]() Hi smonkey, |
Paranoid (IV) Inmate From: Northumberland, England |
![]() cheers charlie/piper, |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() hey hey hey, we can't do all the work for you! |
Paranoid (IV) Inmate From: California |
![]() Like bitdamaged said, we can't do it for you. He did post some very useful links to help you get started. If you give it a try and get stumped, post your code here and people will help. Also, if you post a few lines from your access log, I will help you out with a regex to break up the parts. |
Paranoid (IV) Inmate From: Northumberland, England |
![]() It was worth a shot. |
Paranoid (IV) Inmate From: California |
![]() quote:
|
Maniac (V) Mad Scientist From: 127 Halcyon Road, Marenia, Atlantis |
![]() bit, this link fucking rocks! |