You are here: Re: webspace « All PHP « IT news, forums, messages
Re: webspace

Posted by Alfred on 09/14/06 18:09

On 14 Sep 2006 07:05:49 -0700, Mike wrote...
>
>I'm working on creating some webspace storage for subscribed users on a
>site.
>
>I want to allocate say 10meg to each user so they can upload as many
>images, audio and video they want.
>
>I've though of 2 ways to work out when they reach their 10meg limit.
>Each user will be allocated a directory on the server.
>
>1) check their directory on the server for how much space is left prior
>to each upload and if the proposed uploaded file will exceed the 10meg
>limit, reject it.
>
>2) on each upload, store the file details, including file size to a
>database and prior to each upload total that users files together and
>work out if it will exceed the 10meg limit.
>
>Any suggestions on which way would be best?
>
>Thanks
>
>Mike
>

Depending on the type of system you are running your web server on, your OS may
have a way of setting quotas for all its users. For just basic security it may
be worth setting up that type of feature to put a cap on what a person is able
to upload to the server.

If that option is available on your setup, there's usually some tool for
reporting and can probably use that to generate a feedback for who is using up
what. I've seen the quota option on FreeBSD and believe it's used on Linux also,
but not familiar enough with Windows.

Alfred
--
Help a Community by Participating in Ours
We donate your subscription fees to the charity you choose
100% of your first month, 10% thereafter.
http://newsguy.com/charity.asp

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация