LMPX.COM |
Home | Linux | Mysql | PHP | XML | ||
|
|
|||
From: Richard Quadling Date: Wed Feb 3 16:47:00 2010 Subject: Re: Storing images
On 3 February 2010 16:35, Karl DeSaulniers <karl@designdrumm.com> wrote: > Any pointers on where I can find a sample locking script. > I may have artists editing files and that would be great to have a > locking of the file while an artist is working on it so no one over writes > each other. > LMK, > Thanks, > > Karl > > On Feb 3, 2010, at 10:31 AM, Richard Quadling wrote: > >> If you have any writers, then you need to introduce a locking >> mechanism or some other protection. > > Karl DeSaulniers > Design Drumm > http://designdrumm.com > > Take a read at what started in http://marc.info/?l=php-db&m=126444533212143&w=2 and http://marc.info/?l=php-db&m=126471476932749&w=2 I mention using a simple directory as a lock. You can implement it in any way you want though. If you already have a mechanism to stop multiple users from editing the same image via a DB, then use that, but just store the image outside of the web root. -- ----- Richard Quadling "Standing on the shoulders of some very clever giants!" EE : http://www.experts-exchange.com/M_248814.html EE4Free : http://www.experts-exchange.com/becomeAnExpert.jsp Zend Certified Engineer : http://zend.com/zce.php?c=ZEND002498&r=213474731 ZOPA : http://uk.zopa.com/member/RQuadling
| Navigate in group php.db at sever news.php.net | |
| Previous | Next |
| © No Copyright You are free to use Anything |
Site Maintained by Zareef Ahmed
Powered By PHP Consultants |