Return-Path: Delivered-To: apmail-httpd-modules-dev-archive@locus.apache.org Received: (qmail 14206 invoked from network); 5 Apr 2007 03:57:06 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Apr 2007 03:57:06 -0000 Received: (qmail 30048 invoked by uid 500); 5 Apr 2007 03:57:13 -0000 Delivered-To: apmail-httpd-modules-dev-archive@httpd.apache.org Received: (qmail 29813 invoked by uid 500); 5 Apr 2007 03:57:12 -0000 Mailing-List: contact modules-dev-help@httpd.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: modules-dev@httpd.apache.org Delivered-To: mailing list modules-dev@httpd.apache.org Received: (qmail 29804 invoked by uid 99); 5 Apr 2007 03:57:12 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 20:57:12 -0700 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of scarleton@gmail.com designates 209.85.132.247 as permitted sender) Received: from [209.85.132.247] (HELO an-out-0708.google.com) (209.85.132.247) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 Apr 2007 20:57:04 -0700 Received: by an-out-0708.google.com with SMTP id d31so553716and for ; Wed, 04 Apr 2007 20:56:44 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=lS9v6fxTHoRMkxcldlZQ/usLzFN3WHceIAZ/zZFBmWzOwWX7zCd/ldZ3i5qlI3Zcfy/lC5ufOvTIlVkJE2wPZyX4d/MCm4UEpfOPhwL2izUOvPaKO/fc26aJSe//F1BeAUMOnLjnh9kGeX7tIWD/zaFmdj0BZeOz5r7EawbZUe8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:content-transfer-encoding:content-disposition:references; b=HQRrlHhWwl0YvtFTlnOaSG8Ao1fZocTTOsq3kuWIyVIKoRYLGI1qYZnCWa9DTRGrx2XK7n5Jp9WLMnmGVCFwpVDWEgpPDIYHd3Jw7ilB80eBNJCnT6Lz7dLIAe0l799nXNxYomQx4i+wSpMYBiguacRWqPukIsUUGTi6H88hsro= Received: by 10.114.27.20 with SMTP id a20mr535682waa.1175745403921; Wed, 04 Apr 2007 20:56:43 -0700 (PDT) Received: by 10.114.122.10 with HTTP; Wed, 4 Apr 2007 20:56:43 -0700 (PDT) Message-ID: <8d38ca0a0704042056y28bffbfdja645877982bb3fb8@mail.gmail.com> Date: Wed, 4 Apr 2007 23:56:43 -0400 From: "Sam Carleton" To: modules-dev@httpd.apache.org Subject: Re: translate_name and/or map_to_storage hooks In-Reply-To: <88e286470704041945x2f07943aka0af80dcb643be7b@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit Content-Disposition: inline References: <8d38ca0a0704041731j5010c6d1k9af2baefb407b274@mail.gmail.com> <8d38ca0a0704041934o3ae811c7pda0d80bb87a90e70@mail.gmail.com> <88e286470704041945x2f07943aka0af80dcb643be7b@mail.gmail.com> X-Virus-Checked: Checked by ClamAV on apache.org On 4/4/07, Graham Dumpleton wrote: > I missed out on the start of this conversion so really don't know what > you are trying to do I have one module that does a few different things. 1: create a index html document of images 2: create a page html document of one image (when user clicks on an image in the index) 3: Handle the image request that are in the HTML of #1 and #2 and send out all the images. Right now I have it all written in PHP, there is a index.php for #1 and #2 and an imageHandler.php for #3. I am trying to understand the best way to separate this logic within my one module. Someone else suggested I look at hooking translate_name. I found my answer to how to determine the location, so I have been playing with it since my post and when I set the r->filename = "images"; and return OK, I get a 403 Forbidden. > why aren't you just using mod_rewrite? This is going to be packaged software and I would, ideally, like to keep it all self contained so that end users that decide to start hacking things, cannot get too far.