Re: Re: problem with fopen

From: Date: Fri, 07 May 2004 06:31:58 +0000
Subject: Re: Re: problem with fopen
References: 1 2 3  Groups: php.pecl.dev 
Request: Send a blank email to pecl-dev+get-620@lists.php.net to get a copy of this message
Hi, Thanks for all the informations. On Fri, 2004-05-07 at 11:37, Rasmus Lerdorf wrote: > And since you are using Apache2 likely with the Worker mpm you are going > to need to make this threadsafe as well. Unless you atomically create a > unique filename to write to in each thread, you will be stepping on > yourself here. Yes. I intend to create a unique MD5 hashed filename for each thread. Or is there another way to make it threadsafe. Thanks for the feedback. > > > Please handle file operations via the streams layer. Apart from allowing > > your extension to interoperate with wrappers this approach ensures that > > safe_mode and basedir restrictions are properly applied. A sample use > > (following your original sample) would be: > > I will give this a try. Thanks again. Regards, Animesh -- Animesh Bansriyar <animesh@neolinuxsolutions.com> http://neolinuxsolutions.com, +91-651-3112497, 3122401. Linux Intranet/Internet Servers, Specialised E-mail Setups, Enterprise Database and Directory Services, Linux Application Development and Commercial Support for Free/OpenSource Software

« previous php.pecl.dev (#620) next »