Re: stripping white space?

From: Date: Tue, 10 Jul 2001 09:42:15 +0000
Subject: Re: stripping white space?
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-57122@lists.php.net to get a copy of this message
Hi Maxim, I wrote a mini-manual about the module. You can get it with the code from: http://helium.homeip.net/stuff/cache.tar.gz I hope it helps you and I look forward to suggestions and contributions! Bart "Maxim Maletsky" <maxim@japaninc.com> wrote in message news:DC017B079D81D411998C009027B7112A015ED390@EXC-TYO-01... > > > /cache/data/articles/0-24/... > > /cache/data/articles/25-50/... > > /cache/data/searches/... > > this was our original idea, the difficulty is that there's the need to > access this directory from several places (mod_rewrite, php and postrges). > It is easy to access but might be hard to combine the URL together. > > But you're right, on UNIX systems, if I am not wrong, you cannot hold more > then 1024 (?) files in a single directory. > So subfolders is the way to go. > > Cheers, > Maxim Maletsky > > > > -----Original Message----- > From: Bart Veldhuizen [mailto:bart@blender.nl] > Sent: Tuesday, July 10, 2001 6:07 PM > To: Maxim Maletsky; php-general@lists.php.net > Subject: Re: [PHP] stripping white space? > > > Hi Maxim, > > > I am definitely interested in seeing your caching modules - it could be a > > useful resource for ours. > > Right now our caching module is only in the planning stage, but there are > > few scratches I wrote myself, and it seems to be very promising. > > I'll do my best to write a short blurb on how to use it today and publish > the code. I also have to do a zillion other things (like work on my new > house), so I can't promise it'll actually be there today! > > > There's a directory called /cached which we will store the file with the > > exactly same file names (with mod_rewrite there's no need to use any > > ?var=val&etc=etc&, you just get it looking like a directory) so it is > > extremely easy to locate a file. > > > > ie: if you go to a file > > > > articles/2000/10/26/features/doom > > > > then apache looks first into > > > > cached/articles-2000-10-26-features-doom.txt > > I can see one problem that you're gonna run into and that is that this > directory will contain thousands of files. Not many OS's can handle that. In > our case, each article has an article ID and the caching module > automatically creates subdirectories that will hold a number of cached > pages. Additionally, I can assign page 'types' to a page. These will > generate new subdirectories as well. My caching directory looks like this: > > /cache/data/articles/0-24/... > /cache/data/articles/25-50/... > /cache/data/searches/... > > Have fun, > > Bart > > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net > For additional commands, e-mail: php-general-help@lists.php.net > To contact the list administrators, e-mail: php-list-admin@lists.php.net

« previous php.general (#57122) next »