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

Posted by Mike on 09/14/06 14:05

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

 

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

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