Tarjei Huse wrote:

> >  - get it into the blob dir
> What are you thinking about? Getting into a blobdir to send a blob (for
> instance in an IMG tag)?
> I thought of making code for serving blobs on every page, but found it to
> bothersome. Instead I created a subpage with the following in "code-init" :
> <?
> if ($argc == 1) {
>    mgd_serve_attachment($argv[0]);
>    exit;
>  }

This is exactly how I would do it in general. Note that page blobs need
no
extra work -- they get served by mod_midgard without need for any
supporting PHP coding. So if /some/page has an attachment named
image.gif,
/some/page/image.gif will get sent out when requested without
midgard-php
even being activated.

Emile

Reply via email to