Re: [PHP-DB] Storing images

[email protected] (Richard Quadling)
Newsgroups php.db
Message-ID <[email protected]>
On 3 February 2010 16:35, Karl DeSaulniers <[email protected]> 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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.