Hi Piotras, On Mon, 6 Aug 2001, pp wrote: > > I have reproduced the internal error in test environments only when the > > blob directory was not present, in the wrong location or had wrong > > permissions. Can you check that at least these are correct? > > Sorry , that's my fault! > > "To prepare your setup for blobserving, create a directory to store the > attached file, e.g. /home/httpd/blobs, and make sure the user that > apache runs as (e.g. nobody) has read permission for this > directory. Write permission is not necesary. " > > I suggested myself about only blobs directory. > I did't thought about subdirectories. A good. So that means the internal error part is fixed now? > Piotras > p.s. What is the fastest set of functions > to create attachments for my own admin site? > I do not think I need more than one attachment per article or topic. I suppose by 'fastest' you mean implementation. If want to keep it really simple I'd use: $object->createattachment to create the attachment $object->openattachment to write the attachment $object->serveattachment to serve the attachment I did a real simple implementation once where an article would optionally have two attachements, small.jpg and large.jpg. I'd then have an active page artimg doing the following in code-init (error-checking omitted) <?php $art = mgd_get_article($argv[0]); $art->serveattachment($argv[1]); exit(); ?> the page would be called like: http://domain/artimg/<article-id>/{small|large}.jpg wbr, -- Envida http://www.envida.net/ Armand A. Verstappen Graadt van Roggenweg 328 [EMAIL PROTECTED] 3531 AH Utrecht tel: +31 (0)30 298 2255 Postbus 19127 fax: +31 (0)30 298 2111 3501 DC Utrecht --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
