httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "William A. Rowe, Jr." <wr...@rowe-clan.net>
Subject Re: plain file name of a request
Date Mon, 01 May 2006 16:08:19 GMT
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

Mime
View raw message