How to implement a file lock ??

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • ionel

    How to implement a file lock ??

    is there a cross-platform library or module for file locking?
    or at least a win32 implementation.

    i'm trying to get a lock on some file in a cgi script. ( i got my data
    erased a few times :P )


    --
    ionel.
  • Alan Kennedy

    #2
    Re: How to implement a file lock ??

    [ionel][color=blue]
    > is there a cross-platform library or module for file locking?
    > or at least a win32 implementation.
    >
    > i'm trying to get a lock on some file in a cgi script. ( i got my data
    > erased a few times :P )[/color]

    portalocker - Cross-platform (posix/nt) API for flock-style file locking.



    HTH,

    --
    alan kennedy
    ------------------------------------------------------
    email alan: http://xhaus.com/contact/alan

    Comment

    Working...