On Mon, Sep 1, 2008 at 5:45 PM, Kent Larsson <[EMAIL PROTECTED]> wrote: > Hi, > > Thank you for your answer. I was hoping there were a solution. :-/ It would > have been nice as PHP has a large install base and is a quite common element > in cheap web hosting solutions. Has anyone else got any more comments or > suggestions? > > In absence of shared memory and threads. What I really must have is some > kind of mutex functionality. I will be manipulating files on disk and I > don't want two instances to be able to touch the disk at the same time. Is > there something I could use for mutual exclusion? If there aren't any > dedicated methods, are there 100% reliable workarounds? > > On Mon, Sep 1, 2008 at 8:27 PM, Per Jessen <[EMAIL PROTECTED]> wrote: > >> Kent Larsson wrote: >> >> > Hi, >> > >> > Is it possible to have shared memory in the form of shared global >> > variables in PHP? Or any other form of shared memory? And if that is >> > the case, is there any form of mutex functionality which may be used >> > to assure syncronized access to this memory? >> > >> > My next question is related to the first one. >> >> I can't answer any of your questions, but if you need shared memory, >> mutexes and threading, I would advice against using PHP. >> >> >> /Per Jessen, Zürich >> >> >> -- >> PHP General Mailing List (http://www.php.net/) >> To unsubscribe, visit: http://www.php.net/unsub.php >> >> >
Perhaps these may be of interest: http://us.php.net/manual/en/ref.shmop.php http://us3.php.net/pcntl_fork http://us3.php.net/manual/en/book.sem.php