[pmwiki-users] Re: Re: Re: Using AllRecentChanges as a shared page between fields

chr at home.se chr at home.se
Sun Jul 24 11:10:05 CDT 2005


On Sun, 24 Jul 2005, Patrick R. Michaud wrote:

> > ... In addition, I think that using wiki.d/ in this way isn't "clean", 
> > and speaks for changing the directory structure into something like
> > 
> > 	data.d/
> > 	  |-- tmp/	- temporary files and locking flag
> > 	  |-- wiki.d/	- only stored wiki pages
> > 	  ...
> 
> The reason I didn't create a separate directory for this is that it
> means creating another webserver-writable directory that has to be
> protected from browsers somehow, and I felt things were generally 
> simpler if all of the protected files were kept in one place rather
> than multiplying it to two or more.

For these temporary files, I can't see why you don't simply use /tmp?
Isn't that (or something similar) available in windows? 

/Christian

PS. I am aware that you can't use a single temporary directory for all the
possible pmwikis that run on a single server. Instead you'd have to do
something like

	/tmp/pmwiki/
		a/	- one site
		  .flock/
		  ...
		b/	- another site
		...

where 'a', or 'b' need to be something derived from e.g. the name of each
site. If you don't want verbose, you could use a hash value of the URI for 
instance.

-- 
Christian Ridderström, +46-8-768 39 44               http://www.md.kth.se/~chr






More information about the pmwiki-users mailing list