You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@httpd.apache.org by Greg Ames <gr...@apache.org> on 2006/05/01 17:24:19 UTC
Re: plain file name of a request
Markus Litz wrote:
> Hello,
>
> how can i get the filename only of the requested uri? For example if
> "http://www.example.com/test.html" is requestet, i only want "test.html".
> request_rec::filename only gives the full filename on disk.
basename(r->filename)
Greg
Re: plain file name of a request
Posted by "William A. Rowe, Jr." <wr...@rowe-clan.net>.
Greg Ames wrote:
> Markus Litz wrote:
>
>> Hello,
>>
>> how can i get the filename only of the requested uri? For example if
>> "http://www.example.com/test.html" is requestet, i only want
>> "test.html". request_rec::filename only gives the full filename on disk.
>
> basename(r->filename)
:) Or portably, apr_filepath_name_get() declared in apr_lib.h