seperating filenames

J

John Smith

Hi,

I'm using the input File method for users to upload their files to a folder
on a website, I wanted to store the filename in the database but the
information that is produced from the input File is an absolute path to the
file on the users system (ie. c:/usersfolder/usersfile.doc) where as I only
want the filename (usersfile.doc). I am presuming that this is going to be a
Split method but is there a decent place to find a tutorial on this. I've
had a good google but can't seem to find anything.

Thanks

John
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,767
Messages
2,569,570
Members
45,045
Latest member
DRCM

Latest Threads

Top