On Jan 14, 9:30 am, matt_thomson <[email protected]> wrote: > I think ultimately its more of a CMS question then. A lot of my Joomla > customers don't even have htaccess.txt changed to .htaccess, and if > there is some url rewriting being done, it could be one of many > different plugins, which I will have to test and work with. > > It might be best to investigate a 404 handler in the next version, but > still have the if(file_exists) to fall back on.
It is likely that Joomla already leverages Apache's 404 handler where possible. That is the situation in Drupal with ImageCache. ImageCache (AFAIK, I haven't checked the code) has its image generation triggered only when Drupal fires up the 404 handler. Given how long ImageCache has existed in Drupal (and I know of a similar solution which existed in Roxen as far back as 1997 or so), I'd be surprised if there isn't something like that in Joomla already for you to study. I think for a toolkit like what you're building, it's acceptable to require 404 handling at the webserver level as part of the solution. A host which doesn't offer that level of flexibility is probably not a good pick for on-the-fly image transformation in the first place, and providing the less performant solution as a fallback may result in you needing to support sub-optimal setups. That may be a consideration if you plan on sharing the module to the wider community, and intend supporting it from then on.
-- NZ PHP Users Group: http://groups.google.com/group/nzphpug To post, send email to [email protected] To unsubscribe, send email to [email protected]
