[EMAIL PROTECTED] wrote:
> Hi All,
>   Since lookup_uri() is only to be used when the actual
> URI physically exists. Having said that how does not tell 
> it to pretend that a randomly generated virtual file exists?
> Is that what lookup_filename() is for? 

lookup_uri() will issue a subrequest that includes URI->filename
translation.  lookup_file() will skip over the translation part, setting
$r->filename to the file you pass in.  I suppose that you could use this to
avoid the IO if you know the file doesn't exist, but I've never tried.  from
the code it looks like it should work ok - $r->filename is set but
meaningless for dynamic documents anyway.

> I am wanting to do a 
> internal_redirect() to a virtual file whose name is always
> changing. This way the Location is never the same twice.
> Any suggestions appreciated.

I don't see why you need to use either with internal_redirect() - just pass
it the URI and let Apache handle it.  you would use a subrequest (initiated
from eather of the lookup functions) along with $sub->run() if you wanted to
send the contents of the subrequest along.

HTH

--Geoff


-- 
Reporting bugs: http://perl.apache.org/bugs/
Mail list info: http://perl.apache.org/maillist/modperl.html
List etiquette: http://perl.apache.org/maillist/email-etiquette.html

Reply via email to