Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

get filename from uri

Status
Not open for further replies.

GoSooJJ

Programmer
Feb 24, 2001
76
US
I'm new to Apache and need help on c module.
This can be simple but it's really hard to find solution from web so I'm asking experts here.

Basically, if URI is "/folder1/12345_pdf_1.pdf", I'd like to get filename first which is "12345_something.pdf" then get "12345" document number. I'm writing C Apache module so I need example of them.

TIA.
 
if you want c code then you should ask at the c forum, but you could easily do it with perl instead of c.



``The wise man doesn't give the right answers,
he poses the right questions.''
TIMTOWTDI
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top